Preinstall numpy if it exists in the requirements (temporary fix)

This commit is contained in:
allegroai 2020-02-04 18:06:25 +02:00
parent 6d091d8e08
commit 28d752d568

View File

@ -6,14 +6,14 @@ from .requirements import SimpleSubstitution
class CythonRequirement(SimpleSubstitution):
name = "cython"
name = ("cython", "numpy", )
def __init__(self, *args, **kwargs):
super(CythonRequirement, self).__init__(*args, **kwargs)
def match(self, req):
# match both Cython & cython
return req.name and self.name == req.name.lower()
return req.name and req.name.lower() in self.name
def replace(self, req):
"""