diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-astropy/package.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/py-astropy/package.py b/var/spack/repos/builtin/packages/py-astropy/package.py index 26e995985a..1eb605e2d6 100644 --- a/var/spack/repos/builtin/packages/py-astropy/package.py +++ b/var/spack/repos/builtin/packages/py-astropy/package.py @@ -60,11 +60,15 @@ class PyAstropy(PythonPackage): depends_on('expat') def build_args(self, spec, prefix): - return [ - '-j', str(make_jobs), + args = [ '--use-system-libraries', '--use-system-erfa', '--use-system-wcslib', '--use-system-cfitsio', '--use-system-expat' ] + + if spec.satisfies('^python@3:'): + args.extend(['-j', str(make_jobs)]) + + return args |