Packages/py scipy (#32767)

This commit is contained in:
Daryl W. Grunau 2022-09-23 07:41:44 -06:00 committed by GitHub
parent 4bfa61c149
commit ca62819261
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -118,6 +118,15 @@ def set_fortran_compiler(self):
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 @@ def setup_build_environment(self, env):
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)