py-numpy: remove install_options (#28459)

This commit is contained in:
Adam J. Stewart 2022-01-19 05:31:47 -06:00 committed by GitHub
parent abe77ec8ab
commit 3b2c7633eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -342,20 +342,6 @@ def setup_build_environment(self, env):
env.set('NPY_LAPACK_ORDER', lapack) env.set('NPY_LAPACK_ORDER', lapack)
def install_options(self, spec, prefix):
args = []
# From NumPy 1.10.0 on it's possible to do a parallel build.
# https://numpy.org/devdocs/user/building.html#parallel-builds
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
@run_after('install') @run_after('install')
@on_package_attributes(run_tests=True) @on_package_attributes(run_tests=True)
def install_test(self): def install_test(self):