py-numpy: update (#8003)
* py-numpy: update * Better constrain when can / cannot parallel build. * Update SciPy parallel logic to be specific to Python 3.5+, same as in Numpy.
This commit is contained in:
parent
60c1e41e4c
commit
d52eb8b34d
2 changed files with 9 additions and 4 deletions
|
@ -149,8 +149,12 @@ def patch(self):
|
|||
def build_args(self, spec, prefix):
|
||||
args = []
|
||||
|
||||
# From NumPy 1.10.0 on it's possible to do a parallel build
|
||||
# From NumPy 1.10.0 on it's possible to do a parallel build.
|
||||
if self.version >= Version('1.10.0'):
|
||||
# But Parallel build in Python 3.5+ is broken. See:
|
||||
# https://github.com/spack/spack/issues/7927
|
||||
# https://github.com/scipy/scipy/issues/7112
|
||||
if spec['python'].version < Version('3.5'):
|
||||
args = ['-j', str(make_jobs)]
|
||||
|
||||
return args
|
||||
|
|
|
@ -74,9 +74,10 @@ def build_args(self, spec, prefix):
|
|||
args = []
|
||||
|
||||
# Build in parallel
|
||||
# Known problems with Python 3
|
||||
# Known problems with Python 3.5+
|
||||
# https://github.com/spack/spack/issues/7927
|
||||
# https://github.com/scipy/scipy/issues/7112
|
||||
if not spec.satisfies('^python@3:'):
|
||||
if not spec.satisfies('^python@3.5:'):
|
||||
args.extend(['-j', str(make_jobs)])
|
||||
|
||||
return args
|
||||
|
|
Loading…
Reference in a new issue