diff options
author | Daryl W. Grunau <DarylGrunau@gmail.com> | 2022-09-23 07:41:44 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-23 07:41:44 -0600 |
commit | ca62819261ad527d46a26ad705ddf7c0cfbd961b (patch) | |
tree | 0b1bc019991eeda563d372adacd23487dee6185e /var | |
parent | 4bfa61c1490f95614b450fe217f2fe1dc2cce691 (diff) | |
download | spack-ca62819261ad527d46a26ad705ddf7c0cfbd961b.tar.gz spack-ca62819261ad527d46a26ad705ddf7c0cfbd961b.tar.bz2 spack-ca62819261ad527d46a26ad705ddf7c0cfbd961b.tar.xz spack-ca62819261ad527d46a26ad705ddf7c0cfbd961b.zip |
Packages/py scipy (#32767)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-scipy/package.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-scipy/package.py b/var/spack/repos/builtin/packages/py-scipy/package.py index b8ca9e61c9..f2ac3ae4b0 100644 --- a/var/spack/repos/builtin/packages/py-scipy/package.py +++ b/var/spack/repos/builtin/packages/py-scipy/package.py @@ -118,6 +118,15 @@ class PyScipy(PythonPackage): with open("setup.cfg", "w") as f: f.write("[config_fc]\n") f.write("fcompiler = fujitsu\n") + elif self.spec.satisfies("%intel") or self.spec.satisfies("%oneapi"): + if self.spec.satisfies("target=x86:"): + with open("setup.cfg", "w") as f: + f.write("[config_fc]\n") + f.write("fcompiler = intel\n") + elif self.spec.satisfies("target=x86_64:"): + with open("setup.cfg", "w") as f: + f.write("[config_fc]\n") + f.write("fcompiler = intelem\n") def setup_build_environment(self, env): # https://github.com/scipy/scipy/issues/9080 @@ -129,6 +138,11 @@ class PyScipy(PythonPackage): if self.spec.satisfies("^py-numpy@1.16:1.17"): env.set("NPY_DISTUTILS_APPEND_FLAGS", "1") + # https://github.com/scipy/scipy/issues/14935 + if self.spec.satisfies("%intel ^py-pythran") or self.spec.satisfies("%oneapi ^py-pythran"): + if self.spec["py-pythran"].version < Version("0.12"): + env.set("SCIPY_USE_PYTHRAN", "0") + # Pick up Blas/Lapack from numpy self.spec["py-numpy"].package.setup_build_environment(env) |