Fix external numpy package support (#13197)

This commit is contained in:
Adam J. Stewart 2019-10-12 20:21:03 -05:00 committed by GitHub
parent 3df6b05c04
commit 41e0b069d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -203,7 +203,7 @@ def setup_environment(self, spack_env, run_env):
spec = self.spec
# https://numpy.org/devdocs/user/building.html#blas
if '~blas' in spec:
if 'blas' not in spec:
blas = ''
elif spec['blas'].name == 'intel-mkl' or \
spec['blas'].name == 'intel-parallel-studio':
@ -222,7 +222,7 @@ def setup_environment(self, spack_env, run_env):
spack_env.set('NPY_BLAS_ORDER', blas)
# https://numpy.org/devdocs/user/building.html#lapack
if '~lapack' in spec:
if 'lapack' not in spec:
lapack = ''
elif spec['lapack'].name == 'intel-mkl' or \
spec['lapack'].name == 'intel-parallel-studio':