diff --git a/var/spack/repos/builtin/packages/py-scipy/package.py b/var/spack/repos/builtin/packages/py-scipy/package.py index a094b0d280..f882d413e0 100644 --- a/var/spack/repos/builtin/packages/py-scipy/package.py +++ b/var/spack/repos/builtin/packages/py-scipy/package.py @@ -203,10 +203,16 @@ def install(self, spec, prefix): lapack = "mkl-dynamic-lp64-seq" if spec["blas"].name in ["blis", "amdblis"]: blas = "blis" - if blas == "armpl": - blas += "-dynamic-lp64-seq" - if lapack == "armpl": - lapack += "-dynamic-lp64-seq" + if "armpl" in blas: + if "_mp" in blas: + blas = "armpl-dynamic-lp64-omp" + else: + blas = "armpl-dynamic-lp64-seq" + if "armpl" in lapack: + if "_mp" in lapack: + lapack = "armpl-dynamic-lp64-omp" + else: + lapack = "armpl-dynamic-lp64-seq" args = [ "setup",