From 051abfb894d41ef488545710a75ea06d8a2013b0 Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Wed, 25 Jan 2023 11:32:21 +0900 Subject: [PATCH] py-scipy: do not build 1.6 and older with python < 3.10.1 (#35120) py-scipy 1.6 and older come with pre cython-ized files that use the _PyGen_Send symbol that was removed from python 3.10.0.161, so do not build these old versions with python 3.10.1 and later --- var/spack/repos/builtin/packages/py-scipy/package.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/var/spack/repos/builtin/packages/py-scipy/package.py b/var/spack/repos/builtin/packages/py-scipy/package.py index d36e1aad54..c639dffca8 100644 --- a/var/spack/repos/builtin/packages/py-scipy/package.py +++ b/var/spack/repos/builtin/packages/py-scipy/package.py @@ -100,10 +100,10 @@ class PyScipy(PythonPackage): depends_on("python@3.8:3.10", when="@1.8", type=("build", "link", "run")) depends_on("python@3.7:3.10", when="@1.7.2:1.7", type=("build", "link", "run")) depends_on("python@3.7:3.9", when="@1.6.2:1.7.1", type=("build", "link", "run")) - depends_on("python@3.7:", when="@1.6:1.6.1", type=("build", "link", "run")) - depends_on("python@3.6:", when="@1.5.0:1.5", type=("build", "link", "run")) - depends_on("python@3.5:", when="@1.3:1.4", type=("build", "link", "run")) - depends_on("python@2.7:2.8,3.4:", when="@:1.2", type=("build", "link", "run")) + depends_on("python@3.7:3.10.0", when="@1.6:1.6.1", type=("build", "link", "run")) + depends_on("python@3.6:3.10.0", when="@1.5.0:1.5", type=("build", "link", "run")) + depends_on("python@3.5:3.10.0", when="@1.3:1.4", type=("build", "link", "run")) + depends_on("python@2.7:2.8,3.4:3.10.0", when="@:1.2", type=("build", "link", "run")) depends_on("py-pytest", type="test") # NOTE: scipy should use the same BLAS/LAPACK as numpy.