Fix external numpy package support (#13197)
This commit is contained in:
parent
3df6b05c04
commit
41e0b069d7
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user