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
This commit is contained in:
Gilles Gouaillardet 2023-01-25 11:32:21 +09:00 committed by GitHub
parent 0447ba1213
commit 051abfb894
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.