py-scipy: re-apply scipy/scipy#14935 workaround (#39555)

* re-apply scipy/scipy#14935 workaround

* restrict to %intel and eliminate Version() check

---------

Co-authored-by: Daryl W. Grunau <dwg@lanl.gov>
This commit is contained in:
Daryl W. Grunau 2023-08-26 07:44:57 -06:00 committed by GitHub
parent 04d55b7600
commit b370ecfbda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -193,9 +193,8 @@ def setup_build_environment(self, env):
env.set("NPY_DISTUTILS_APPEND_FLAGS", "1") env.set("NPY_DISTUTILS_APPEND_FLAGS", "1")
# https://github.com/scipy/scipy/issues/14935 # https://github.com/scipy/scipy/issues/14935
if self.spec.satisfies("%intel ^py-pythran") or self.spec.satisfies("%oneapi ^py-pythran"): if self.spec.satisfies("%intel ^py-pythran"):
if self.spec["py-pythran"].version < Version("0.12"): env.set("SCIPY_USE_PYTHRAN", "0")
env.set("SCIPY_USE_PYTHRAN", "0")
# Pick up BLAS/LAPACK from numpy # Pick up BLAS/LAPACK from numpy
if self.spec.satisfies("@:1.8"): if self.spec.satisfies("@:1.8"):