summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2019-10-12 20:21:03 -0500
committerGitHub <noreply@github.com>2019-10-12 20:21:03 -0500
commit41e0b069d78c6a3012dfb10e47fa9852752b36cc (patch)
tree9282c614d5457883aaadfec0c510d55c00392b03
parent3df6b05c04f85f3a00de57da0ba496c06ac786fc (diff)
downloadspack-41e0b069d78c6a3012dfb10e47fa9852752b36cc.tar.gz
spack-41e0b069d78c6a3012dfb10e47fa9852752b36cc.tar.bz2
spack-41e0b069d78c6a3012dfb10e47fa9852752b36cc.tar.xz
spack-41e0b069d78c6a3012dfb10e47fa9852752b36cc.zip
Fix external numpy package support (#13197)
-rw-r--r--var/spack/repos/builtin/packages/py-numpy/package.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/py-numpy/package.py b/var/spack/repos/builtin/packages/py-numpy/package.py
index e1b19ee4d7..8dc9db262d 100644
--- a/var/spack/repos/builtin/packages/py-numpy/package.py
+++ b/var/spack/repos/builtin/packages/py-numpy/package.py
@@ -203,7 +203,7 @@ class PyNumpy(PythonPackage):
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 @@ class PyNumpy(PythonPackage):
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':