summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2019-10-22 09:15:11 -0500
committerGitHub <noreply@github.com>2019-10-22 09:15:11 -0500
commit809733c7e6861e56d3a4ab4107e3afd4b4a65dd9 (patch)
treee4e277a866ddab982820a4540216ab0d3bd72a93
parentcfbdd2179e83c0e900dca0e43183e10c0e2a373a (diff)
downloadspack-809733c7e6861e56d3a4ab4107e3afd4b4a65dd9.tar.gz
spack-809733c7e6861e56d3a4ab4107e3afd4b4a65dd9.tar.bz2
spack-809733c7e6861e56d3a4ab4107e3afd4b4a65dd9.tar.xz
spack-809733c7e6861e56d3a4ab4107e3afd4b4a65dd9.zip
Restrict parallel build of py-astropy to Python 3 (#13360)
-rw-r--r--var/spack/repos/builtin/packages/py-astropy/package.py8
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