py-numpy: add v2.0.0 (#44735)

This commit is contained in:
Adam J. Stewart 2024-07-08 09:14:50 +02:00 committed by GitHub
parent 10cdfff0d1
commit ddab6156a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
58 changed files with 191 additions and 71 deletions

View File

@ -245,6 +245,8 @@ def libs(self):
depends_on("zstd", when="+iostreams")
depends_on("xz", when="+iostreams")
depends_on("py-numpy", when="+numpy", type=("build", "run"))
# https://github.com/boostorg/python/issues/431
depends_on("py-numpy@:1", when="@:1.85+numpy", type=("build", "run"))
# Improve the error message when the context-impl variant is conflicting
conflicts("context-impl=fcontext", when="@:1.65.0")

View File

@ -409,6 +409,8 @@ class Gdal(CMakePackage, AutotoolsPackage, PythonExtension):
depends_on("py-setuptools@:57", type="build", when="@:3.2+python") # needs 2to3
depends_on("py-setuptools", type="build", when="+python")
depends_on("py-numpy@1.0.0:", type=("build", "run"), when="+python")
# https://github.com/OSGeo/gdal/issues/9751
depends_on("py-numpy@:1", when="@:3.8+python", type=("build", "run"))
depends_on("swig", type="build", when="+python")
depends_on("java@7:", type=("build", "link", "run"), when="@3.2:+java")
depends_on("java@6:", type=("build", "link", "run"), when="@2.4:+java")

View File

@ -42,6 +42,8 @@ class Gnuradio(CMakePackage):
# See https://github.com/spack/spack/pull/22303 for reference
depends_on(Boost.with_default_variants)
depends_on("py-numpy", type=("build", "run"))
# https://github.com/gnuradio/gnuradio/issues/7378
depends_on("py-numpy@:1", when="@:3.10.10.0", type=("build", "run"))
depends_on("py-click", type=("build", "run"))
depends_on("py-pyyaml", type=("build", "run"))
depends_on("py-click-plugins", type=("build", "run"))

View File

@ -251,6 +251,8 @@ class Opencv(CMakePackage, CudaPackage):
depends_on("python@3.2:", type=("build", "link", "run"))
depends_on("py-setuptools", type="build")
depends_on("py-numpy", type=("build", "run"))
# https://github.com/opencv/opencv-python/issues/943
depends_on("py-numpy@:1", when="@:4.10.0.83", type=("build", "run"))
extends("python", when="+python3")
with when("+stitching"):

View File

@ -39,6 +39,8 @@ class PyArmPyart(PythonPackage):
depends_on("py-cython", type="build")
depends_on("py-numpy", type=("build", "run"))
# https://github.com/ARM-DOE/pyart/issues/1550
depends_on("py-numpy@:1", when="@:1.18.1", type=("build", "run"))
depends_on("py-scipy", type=("build", "run"))
depends_on("py-netcdf4", type=("build", "run"))
depends_on("py-matplotlib", type=("build", "run"))

View File

@ -25,3 +25,5 @@ class PyAstropyHealpix(PythonPackage):
depends_on("python@3.6:", type=("build", "run"))
depends_on("py-astropy@2.0:", type=("build", "run"))
depends_on("py-numpy@1.11:", type=("build", "run"))
# https://github.com/astropy/astropy-healpix/pull/214
depends_on("py-numpy@:1", when="@:1.0.2", type=("build", "run"))

View File

@ -51,6 +51,8 @@ class PyAstropy(PythonPackage):
depends_on("py-numpy@1.9:", when="@2.0:", type=("build", "run"))
depends_on("py-numpy@1.7:", when="@1.2:", type=("build", "run"))
depends_on("py-numpy", type=("build", "run"))
# https://github.com/astropy/astropy/issues/16200
depends_on("py-numpy@:1", when="@:6.0")
depends_on("py-packaging@19.0:", when="@5.1:", type=("build", "run"))
depends_on("py-pyyaml@3.13:", when="@5.1:", type=("build", "run"))
depends_on("py-pyerfa@2.0:", when="@5.1:", type=("build", "run"))

View File

@ -33,4 +33,6 @@ class PyBiopython(PythonPackage):
depends_on("python@2.7,3.5:3.9", type=("build", "run"), when="@1.75:1.76")
depends_on("python@3.6:", type=("build", "run"), when="@1.77:")
depends_on("py-numpy", type=("build", "run"))
# https://github.com/biopython/biopython/issues/4676
depends_on("py-numpy@:1", when="@:1.83", type=("build", "run"))
depends_on("py-setuptools", type="build")

View File

@ -46,6 +46,8 @@ class PyBokeh(PythonPackage):
depends_on("py-numpy@1.7.1:", type=("build", "run"))
depends_on("py-numpy@1.11.3:", type=("build", "run"), when="@2.3.3:")
depends_on("py-numpy@1.16:", type=("build", "run"), when="@3.1:")
# https://github.com/bokeh/bokeh/issues/13835
depends_on("py-numpy@:1", when="@:3.4.0", type=("build", "run"))
depends_on("py-packaging@16.8:", type=("build", "run"), when="@1.3.4:")

View File

@ -22,4 +22,6 @@ class PyBoostHistogram(PythonPackage):
depends_on("py-setuptools@45:", type="build")
depends_on("py-setuptools-scm@4.1.2:+toml", type="build")
depends_on("py-numpy@1.13.3:", type=("build", "run"))
# https://github.com/numpy/numpy/issues/26191#issuecomment-2179127999
depends_on("py-numpy@:1", when="@:1.4.0", type=("build", "run"))
depends_on("py-typing-extensions", when="^python@:3.7", type=("build", "run"))

View File

@ -25,3 +25,5 @@ class PyBottleneck(PythonPackage):
depends_on("py-setuptools", type="build")
depends_on("py-versioneer", when="@1.3.3:", type="build")
depends_on("py-numpy", type=("build", "run"))
# https://github.com/pydata/bottleneck/issues/453
depends_on("py-numpy@:1", when="@:1.3", type=("build", "run"))

View File

@ -62,12 +62,13 @@ class PyCartopy(PythonPackage):
depends_on("py-setuptools-scm", when="@0.19:")
with default_args(type=("build", "link", "run")):
depends_on("py-numpy@1.21:", when="@0.23:")
depends_on("py-numpy@1.21:1", when="@0.22")
depends_on("py-numpy@1.18:1", when="@0.20:21")
depends_on("py-numpy@1.13.3:1", when="@0.19")
depends_on("py-numpy@1.10:1", when="@0.17:0.18")
depends_on("py-numpy@1.6:1", when="@0.16")
depends_on("py-numpy@1.21:", when="@0.22:")
depends_on("py-numpy@1.18:", when="@0.20:21")
depends_on("py-numpy@1.13.3:", when="@0.19")
depends_on("py-numpy@1.10:", when="@0.17:0.18")
depends_on("py-numpy@1.6:", when="@0.16")
# https://github.com/SciTools/cartopy/issues/2339
depends_on("py-numpy@:1", when="@:0.22")
with default_args(type=("build", "run")):
depends_on("py-matplotlib@3.5:", when="@0.23:")

View File

@ -22,5 +22,7 @@ class PyContourpy(PythonPackage):
depends_on("py-pybind11@2.6:", type=("build", "link"))
depends_on("py-setuptools@42:", type="build")
depends_on("py-numpy@1.16:", type=("build", "run"))
# https://github.com/numpy/numpy/issues/26191
depends_on("py-numpy@:1", when="@:1.2.0", type=("build", "run"))
depends_on("py-build", when="@:1.0.5", type="build")

View File

@ -63,6 +63,8 @@ class PyDask(PythonPackage):
depends_on("py-numpy@1.16.0:", type=("build", "run"), when="@2021.3.1: +array")
depends_on("py-numpy@1.18.0:", type=("build", "run"), when="@2022.10.2: +array")
depends_on("py-numpy@1.21.0:", type=("build", "run"), when="@2023.4.0: +array")
# https://github.com/dask/dask/issues/11066
depends_on("py-numpy@:1", when="@:2024.5.0+array", type=("build", "run"))
# The dependency on py-toolz is non-optional starting version 2021.3.1
depends_on("py-toolz@0.8.2:", type=("build", "run"), when="@:2021.3.0 +array")
@ -82,6 +84,8 @@ class PyDask(PythonPackage):
depends_on("py-numpy@1.16.0:", type=("build", "run"), when="@2021.3.1: +dataframe")
depends_on("py-numpy@1.18.0:", type=("build", "run"), when="@2022.10.2: +dataframe")
depends_on("py-numpy@1.21.0:", type=("build", "run"), when="@2023.4.0: +dataframe")
# https://github.com/dask/dask/issues/11066
depends_on("py-numpy@:1", when="@:2024.5.0+dataframe", type=("build", "run"))
depends_on("py-pandas@0.25.0:", type=("build", "run"), when="@2020.12.0: +dataframe")
depends_on("py-pandas@1.0:", type=("build", "run"), when="@2022.10.2: +dataframe")
depends_on("py-pandas@1.3:", type=("build", "run"), when="@2023.4.0: +dataframe")

View File

@ -58,12 +58,13 @@ class PyH5py(PythonPackage):
depends_on("py-setuptools", type="build")
# Build and runtime dependencies
depends_on("py-numpy@1.17.3:", type=("build", "run"), when="@3.11:")
depends_on("py-numpy@1.17.3:1", type=("build", "run"), when="@3.9:3.10")
depends_on("py-numpy@1.19.3:1", type=("build", "run"), when="@3:3.5 ^python@3.9.0:")
depends_on("py-numpy@1.17.5:1", type=("build", "run"), when="@3:3.5 ^python@3.8.0:3.8")
depends_on("py-numpy@1.14.5:1", type=("build", "run"), when="@3:")
depends_on("py-numpy@1.7:1", type=("build", "run"), when="@:2")
depends_on("py-numpy@1.17.3:", type=("build", "run"), when="@3.9:")
depends_on("py-numpy@1.19.3:", type=("build", "run"), when="@3:3.5 ^python@3.9.0:")
depends_on("py-numpy@1.17.5:", type=("build", "run"), when="@3:3.5 ^python@3.8.0:3.8")
depends_on("py-numpy@1.14.5:", type=("build", "run"), when="@3:")
depends_on("py-numpy@1.7:", type=("build", "run"), when="@:2")
# https://github.com/h5py/h5py/issues/2353
depends_on("py-numpy@:1", when="@:3.10", type=("build", "run"))
# Link dependencies (py-h5py v2 cannot build against HDF5 1.12 regardless
# of API setting)

View File

@ -40,6 +40,8 @@ class PyHypothesis(PythonPackage):
depends_on("py-pytz@2014.1:", type="run", when="+django")
depends_on("py-numpy@1.17.3:", type="run", when="@6.96: +numpy")
depends_on("py-numpy@1.9.0:", type="run", when="+numpy")
# https://github.com/HypothesisWorks/hypothesis/issues/3950
depends_on("py-numpy@:1", when="@:6.100.1+numpy", type="run")
depends_on("py-pandas@1.1:", type="run", when="@6.96: +pandas")
depends_on("py-pandas@0.25:", type="run", when="+pandas")

View File

@ -22,6 +22,8 @@ class PyImagecodecs(PythonPackage):
depends_on("python@3.8:", type=("build", "run"))
depends_on("py-numpy@1.19.2:", type=("build", "run"))
# https://github.com/cgohlke/imagecodecs/issues/100
depends_on("py-numpy@:1", when="@:2024.6.0", type=("build", "run"))
depends_on("py-setuptools@18.0:", type="build")
depends_on("py-cython@0.29.27:", type="build")
depends_on("py-bitshuffle@0.3.5:", type=("build", "run"))

View File

@ -35,6 +35,8 @@ class PyImageio(PythonPackage):
depends_on("py-numpy", type=("build", "run"))
depends_on("py-numpy@1.20:", when="@2.16", type=("build", "run"))
# https://github.com/imageio/imageio/issues/1077
depends_on("py-numpy@:1", when="@:2.34.1", type=("build", "run"))
depends_on("pil@8.3.2:", when="@2.10:", type=("build", "run"))
depends_on("pil", type=("build", "run"))
depends_on("ffmpeg", type="run")

View File

@ -22,4 +22,6 @@ class PyIminuit(PythonPackage):
depends_on("py-setuptools", type="build")
depends_on("py-numpy", type=("build", "run"), when="@1.3:1.3.6")
depends_on("py-numpy@1.11.3:", type=("build", "run"), when="@1.3.7:")
# https://github.com/numpy/numpy/issues/26191#issuecomment-2179127999
depends_on("py-numpy@:1", when="@:2.25", type=("build", "run"))
depends_on("cmake", type="build", when="@2.8.4")

View File

@ -65,6 +65,8 @@ class PyJax(PythonPackage):
depends_on("py-numpy@1.22:", when="@0.4.14:")
depends_on("py-numpy@1.21:", when="@0.4.7:")
depends_on("py-numpy@1.20:", when="@0.3:")
# https://github.com/google/jax/issues/19246
depends_on("py-numpy@:1", when="@:0.4.25")
depends_on("py-opt-einsum")
depends_on("py-scipy@1.9:", when="@0.4.19:")
depends_on("py-scipy@1.7:", when="@0.4.7:")

View File

@ -82,6 +82,8 @@ class PyJaxlib(PythonPackage, CudaPackage):
depends_on("py-numpy@1.22:", when="@0.4.14:")
depends_on("py-numpy@1.21:", when="@0.4.7:")
depends_on("py-numpy@1.20:", when="@0.3:")
# https://github.com/google/jax/issues/19246
depends_on("py-numpy@:1", when="@:0.4.25")
depends_on("py-ml-dtypes@0.4:", when="@0.4.29")
depends_on("py-ml-dtypes@0.2:", when="@0.4.14:")
depends_on("py-ml-dtypes@0.1:", when="@0.4.9:")

View File

@ -79,6 +79,8 @@ class PyKeras(PythonPackage):
depends_on("python@3.8:", when="@2.12:")
depends_on("py-absl-py", when="@2.6:")
depends_on("py-numpy")
# https://github.com/keras-team/keras/issues/19691
depends_on("py-numpy@:1")
depends_on("py-rich", when="@3:")
depends_on("py-namex@0.0.8:", when="@3.3.3:")
depends_on("py-namex", when="@3:")

View File

@ -21,3 +21,5 @@ class PyLaspy(PythonPackage):
depends_on("python@3.6:", type=("build", "run"))
depends_on("py-setuptools", type="build")
depends_on("py-numpy", type=("build", "run"))
# https://github.com/laspy/laspy/pull/313
depends_on("py-numpy@:1", when="@:2.5.3", type=("build", "run"))

View File

@ -24,6 +24,9 @@ class PyLightgbm(PythonPackage):
depends_on("py-pip@:23.0", when="+mpi", type="build")
depends_on("py-wheel", type=("build", "run"))
depends_on("py-numpy", type=("build", "run"))
# https://github.com/microsoft/LightGBM/issues/6454
# https://github.com/microsoft/LightGBM/pull/6439
depends_on("py-numpy@:1", when="@:4.3", type=("build", "run"))
depends_on("py-scipy", type=("build", "run"))
depends_on("py-scikit-learn@:0.21,0.22.1:", type=("build", "run"))

View File

@ -49,6 +49,8 @@ class PyLightly(PythonPackage):
depends_on("py-hydra-core@1:", type=("build", "run"))
depends_on("py-lightly-utils@0.0", type=("build", "run"))
depends_on("py-numpy@1.18.1:", type=("build", "run"))
# https://github.com/lightly-ai/lightly/issues/1558
depends_on("py-numpy@:1", type=("build", "run"))
depends_on("py-python-dateutil@2.5.3:", type=("build", "run"))
depends_on("py-requests@2.23:", type=("build", "run"))
depends_on("py-six@1.10:", type=("build", "run"))

View File

@ -143,14 +143,15 @@ class PyMatplotlib(PythonPackage):
depends_on("py-kiwisolver@1.3.1:", when="@3.8.1:", type=("build", "run"))
depends_on("py-kiwisolver@1.0.1:", type=("build", "run"))
depends_on("py-numpy@1.23:", when="@3.9:", type=("build", "link", "run"))
depends_on("py-numpy@1.21:", when="@3.8.4", type=("build", "link", "run"))
depends_on("py-numpy@1.21:1", when="@3.8.0:3.8.3", type=("build", "link", "run"))
depends_on("py-numpy@1.20:1", when="@3.7", type=("build", "link", "run"))
depends_on("py-numpy@1.19:1", when="@3.6", type=("build", "link", "run"))
depends_on("py-numpy@1.17:1", when="@3.5", type=("build", "link", "run"))
depends_on("py-numpy@1.16:1", when="@3.4", type=("build", "link", "run"))
depends_on("py-numpy@1.15:1", when="@3.3", type=("build", "link", "run"))
depends_on("py-numpy@1.11:1", when="@:3.2", type=("build", "run"))
depends_on("py-numpy@1.21:", when="@3.8", type=("build", "link", "run"))
depends_on("py-numpy@1.20:", when="@3.7", type=("build", "link", "run"))
depends_on("py-numpy@1.19:", when="@3.6", type=("build", "link", "run"))
depends_on("py-numpy@1.17:", when="@3.5", type=("build", "link", "run"))
depends_on("py-numpy@1.16:", when="@3.4", type=("build", "link", "run"))
depends_on("py-numpy@1.15:", when="@3.3", type=("build", "link", "run"))
depends_on("py-numpy@1.11:", when="@:3.2", type=("build", "link", "run"))
# https://github.com/matplotlib/matplotlib/issues/26778
depends_on("py-numpy@:1", when="@:3.8.3", type=("build", "link", "run"))
depends_on("py-packaging@20:", when="@3.6:", type=("build", "run"))
depends_on("py-packaging", when="@3.5:", type=("build", "run"))
depends_on("pil@8:", when="@3.8.1:", type=("build", "run"))

View File

@ -42,9 +42,11 @@ class PyMdanalysis(PythonPackage):
depends_on("py-cython@0.28:", type="build")
# MDAnalysis required dependencies (install_requires)
depends_on("py-numpy@1.22.3:1", when="@2.6.0:", type=("build", "run"))
depends_on("py-numpy@1.22.3:", when="@2.6.0:", type=("build", "run"))
depends_on("py-numpy@1.21.0:", when="@2.5.0:", type=("build", "run"))
depends_on("py-numpy@1.20.0:", type=("build", "run"))
# https://github.com/MDAnalysis/mdanalysis/pull/4482
depends_on("py-numpy@:1", type=("build", "run"))
depends_on("py-griddataformats@0.4.0:", type=("build", "run"))
depends_on("py-mmtf-python@1.0.0:", type=("build", "run"))

View File

@ -22,8 +22,9 @@ class PyMlDtypes(PythonPackage):
version("0.2.0", tag="v0.2.0", commit="5b9fc9ad978757654843f4a8d899715dbea30e88")
depends_on("python@3.9:", when="@0.3:", type=("build", "link", "run"))
depends_on("py-numpy@1.21:", when="@0.4:", type=("build", "link", "run"))
depends_on("py-numpy@1.21:1", when="@:0.3", type=("build", "link", "run"))
depends_on("py-numpy@1.21:", type=("build", "link", "run"))
# https://github.com/jax-ml/ml_dtypes/pull/143
depends_on("py-numpy@:1", when="@:0.3", type=("build", "link", "run"))
# Build dependencies are overconstrained, older versions work just fine
depends_on("py-pybind11", when="@:0.3.1", type=("build", "link"))
depends_on("py-setuptools", type="build")

View File

@ -41,6 +41,7 @@ class PyMne(PythonPackage):
depends_on("py-numpy@1.18.1:", when="@1:", type=("build", "run")) # *
depends_on("py-numpy@1.15.4:", when="@0.23:", type=("build", "run"))
depends_on("py-numpy@1.11.3:", type=("build", "run"))
depends_on("py-numpy@:1", when="@:1.6", type=("build", "run"))
depends_on("py-scipy@1.7.1:", when="@1.6.1:", type=("build", "run"))
depends_on("py-scipy@1.6.3:", when="@1.4:", type=("build", "run"))
depends_on("py-scipy@1.4.1:", when="@1:", type=("build", "run")) # *

View File

@ -30,6 +30,8 @@ class PyModin(PythonPackage):
depends_on("py-pandas@1.1.5", when="^python@:3.7", type=("build", "run"))
depends_on("py-packaging", type=("build", "run"))
depends_on("py-numpy@1.18.5:", type=("build", "run"))
# https://github.com/modin-project/modin/issues/7310
depends_on("py-numpy@:1", when="@:0.30", type=("build", "run"))
depends_on("py-fsspec", type=("build", "run"))
depends_on("py-psutil", type=("build", "run"))

View File

@ -35,6 +35,8 @@ class PyNetcdf4(PythonPackage):
depends_on("py-numpy", when="@1.6.5:", type=("build", "link", "run"))
depends_on("py-numpy@1.9:", when="@1.5.4:1.6.2", type=("build", "link", "run"))
depends_on("py-numpy@1.7:", type=("build", "link", "run"))
# https://github.com/Unidata/netcdf4-python/pull/1317
depends_on("py-numpy@:1", when="@:1.6", type=("build", "link", "run"))
depends_on("py-mpi4py", when="+mpi", type=("build", "run"))
depends_on("netcdf-c", when="-mpi")
depends_on("netcdf-c+mpi", when="+mpi")

View File

@ -50,6 +50,8 @@ class PyNetworkx(PythonPackage):
# From requirements/default.txt
depends_on("py-numpy@1.20:", when="@3:", type=("build", "run"))
depends_on("py-numpy@1.19:", when="@2.8.6:", type=("build", "run"))
# https://github.com/networkx/networkx/pull/7390
depends_on("py-numpy@:1", when="@:3.2", type=("build", "run"))
depends_on("py-scipy@1.8:", when="@2.8.6:", type=("build", "run"))
depends_on("py-matplotlib@3.4:", when="@2.8.6:", type=("build", "run"))
depends_on("py-pandas@1.3:", when="@2.8.6:", type=("build", "run"))

View File

@ -37,6 +37,8 @@ class PyNumcodecs(PythonPackage):
depends_on("py-setuptools-scm@1.5.5: +toml", type="build")
depends_on("py-cython", type="build")
depends_on("py-numpy@1.7:", type=("build", "run"))
# https://github.com/zarr-developers/numcodecs/issues/521
depends_on("py-numpy@:1", when="@:0.12.0", type=("build", "run"))
depends_on("py-py-cpuinfo", when="@0.11:", type="build")
depends_on("py-entrypoints", when="@0.10.1:0.11", type=("build", "run"))
depends_on("py-msgpack", type=("build", "run"), when="+msgpack")

View File

@ -34,6 +34,8 @@ class PyNumexpr(PythonPackage):
depends_on("py-numpy@1.13.3:1.25", type=("build", "run"), when="@2.8.3:")
# https://github.com/pydata/numexpr/issues/397
depends_on("py-numpy@1.7:1.22", type=("build", "run"), when="@:2.7")
# https://github.com/pydata/numexpr/pull/478
depends_on("py-numpy@:1", when="@:2.9", type=("build", "run"))
# Historical dependencies
depends_on("py-packaging", type=("build", "run"), when="@2.8.3")

View File

@ -22,6 +22,7 @@ class PyNumpy(PythonPackage):
license("BSD-3-Clause")
version("main", branch="main")
version("2.0.0", sha256="cf5d1c9e6837f8af9f92b6bd3e86d513cdc11f60fd62185cc49ec7d1aba34864")
version("1.26.4", sha256="2a02aba9ed12e4ac4eb3ea9421c420301a0c6460d9830d74a9df87efa4912010")
version("1.26.3", sha256="697df43e2b6310ecc9d95f05d5ef20eacc09c7c4ecc9da3f235d39e71b7da1e4")
version("1.26.2", sha256="f65738447676ab5777f11e6bbbdb8ce11b785e105f690bc45966574816b6d3ea")
@ -74,44 +75,51 @@ class PyNumpy(PythonPackage):
version("1.17.3", sha256="a0678793096205a4d784bd99f32803ba8100f639cf3b932dc63b21621390ea7e")
# Based on PyPI wheel availability
depends_on("python@3.9:3.12", when="@1.26:", type=("build", "link", "run"))
depends_on("python@3.9:3.11", when="@1.25", type=("build", "link", "run"))
depends_on("python@3.8:3.11", when="@1.23.2:1.24", type=("build", "link", "run"))
depends_on("python@3.8:3.10", when="@1.22:1.23.1", type=("build", "link", "run"))
depends_on("python@:3.10", when="@1.21.2:1.21", type=("build", "link", "run"))
depends_on("python@:3.9", when="@1.19.3:1.21.1", type=("build", "link", "run"))
depends_on("python@:3.8", when="@1.17.3:1.19.2", type=("build", "link", "run"))
with default_args(type=("build", "link", "run")):
depends_on("python@3.9:3.12", when="@1.26:")
depends_on("python@3.9:3.11", when="@1.25")
depends_on("python@3.8:3.11", when="@1.23.2:1.24")
depends_on("python@3.8:3.10", when="@1.22:1.23.1")
depends_on("python@:3.10", when="@1.21.2:1.21")
depends_on("python@:3.9", when="@1.19.3:1.21.1")
depends_on("python@:3.8", when="@1.17.3:1.19.2")
with default_args(type="build"):
# Required to use --config-settings
depends_on("py-pip@23.1:", when="@1.26:", type="build")
depends_on("py-pip@23.1:", when="@1.26:")
# Build dependencies (do not include upper bound unless known issues)
depends_on("py-cython@0.29.34:", when="@1.26:", type="build")
depends_on("py-cython@0.29.34:2", when="@1.25", type="build")
depends_on("py-cython@0.29.30:2", when="@1.22.4:1.24", type="build")
depends_on("py-cython@0.29.24:2", when="@1.21.2:1.22.3", type="build")
depends_on("py-cython@0.29.21:2", when="@1.19.1:1.21.1", type="build")
depends_on("py-cython@0.29.14:2", when="@1.18.1:1.19.0", type="build")
depends_on("py-cython@0.29.13:2", when="@1.18.0", type="build")
depends_on("py-meson-python@0.15:", when="@1.26.4:", type="build")
depends_on("py-cython@3.0.6:", when="@2:")
depends_on("py-cython@0.29.34:", when="@1.26:")
depends_on("py-cython@0.29.34:2", when="@1.25")
depends_on("py-cython@0.29.30:2", when="@1.22.4:1.24")
depends_on("py-cython@0.29.24:2", when="@1.21.2:1.22.3")
depends_on("py-cython@0.29.21:2", when="@1.19.1:1.21.1")
depends_on("py-cython@0.29.14:2", when="@1.18.1:1.19.0")
depends_on("py-cython@0.29.13:2", when="@1.18.0")
depends_on("py-meson-python@0.15:", when="@1.26.4:")
depends_on("blas")
depends_on("lapack")
# test_requirements.txt
depends_on("py-pytest", type="test")
depends_on("py-hypothesis", when="@1.19:", type="test")
depends_on("py-typing-extensions@4.2:", when="@1.23:", type="test")
with default_args(type="test"):
depends_on("py-pytest")
depends_on("py-hypothesis", when="@1.19:")
depends_on("py-typing-extensions@4.2:", when="@1.23:")
# Historical dependencies
depends_on("py-pyproject-metadata@0.7.1:", when="@1.26.0:1.26.3", type="build")
depends_on("py-tomli@1:", when="@1.26.0:1.26.3 ^python@:3.10", type="build")
depends_on("py-setuptools@60:", when="@1.26.0:1.26.3 ^python@3.12:", type="build")
depends_on("py-setuptools@:63", when="@:1.25", type=("build", "run"))
depends_on("py-setuptools@:59", when="@:1.22.1", type=("build", "run"))
depends_on("py-colorama", when="@1.26.0:1.26.3 platform=windows", type="build")
depends_on("ninja@1.8.2:", when="@1.26.0:1.26.3", type="build")
depends_on("pkgconfig", when="@1.26.0:1.26.3", type="build")
with default_args(type="build"):
depends_on("py-pyproject-metadata@0.7.1:", when="@1.26.0:1.26.3")
depends_on("py-tomli@1:", when="@1.26.0:1.26.3 ^python@:3.10")
depends_on("py-setuptools@60:", when="@1.26.0:1.26.3 ^python@3.12:")
depends_on("py-colorama", when="@1.26.0:1.26.3 platform=windows")
depends_on("ninja@1.8.2:", when="@1.26.0:1.26.3")
depends_on("pkgconfig", when="@1.26.0:1.26.3")
with default_args(type=("build", "run")):
depends_on("py-setuptools@:63", when="@:1.25")
depends_on("py-setuptools@:59", when="@:1.22.1")
# Add Fujitsu Fortran compiler
patch("add_fj_compiler.patch", when="@1.19.3:1.19.5%fj")
@ -167,6 +175,8 @@ class PyNumpy(PythonPackage):
# See https://github.com/numpy/numpy/issues/22011
conflicts("%intel", when="@1.23.0:1.23.3")
conflicts("%oneapi", when="@1.23.0:1.23.3")
# https://github.com/spack/spack/pull/44735
conflicts("%oneapi", when="@2:")
@property
def archive_files(self):

View File

@ -93,16 +93,17 @@ class PyPandas(PythonPackage):
depends_on("py-cython@0.29.13:2", when="@1.0", type="build")
depends_on("py-versioneer+toml", when="@2:", type="build")
depends_on("py-numpy@1.22.4:", when="@2.2.2:", type=("build", "run"))
depends_on("py-numpy@1.22.4:1", when="@2.1:2.2.1", type=("build", "run"))
depends_on("py-numpy@1.20.3:1", when="@1.5:2.0", type=("build", "run"))
depends_on("py-numpy@1.18.5:1", when="@1.4", type=("build", "run"))
depends_on("py-numpy@1.17.3:1", when="@1.3", type=("build", "run"))
depends_on("py-numpy@1.16.5:1", when="@1.2", type=("build", "run"))
depends_on("py-numpy@1.15.4:1", when="@1.1", type=("build", "run"))
depends_on("py-numpy@1.13.3:1", when="@1.0", type=("build", "run"))
depends_on("py-numpy@1.22.4:", when="@2.1:", type=("build", "run"))
depends_on("py-numpy@1.20.3:", when="@1.5:", type=("build", "run"))
depends_on("py-numpy@1.18.5:", when="@1.4", type=("build", "run"))
depends_on("py-numpy@1.17.3:", when="@1.3", type=("build", "run"))
depends_on("py-numpy@1.16.5:", when="@1.2", type=("build", "run"))
depends_on("py-numpy@1.15.4:", when="@1.1", type=("build", "run"))
depends_on("py-numpy@1.13.3:", when="@1.0", type=("build", "run"))
# 'NUMPY_IMPORT_ARRAY_RETVAL' was removed in numpy@1.19
depends_on("py-numpy@1.13.3:1.18", when="@0.25", type=("build", "run"))
# https://github.com/pandas-dev/pandas/issues/55519
depends_on("py-numpy@:1", when="@:2.2.1", type=("build", "run"))
depends_on("py-python-dateutil@2.8.2:", when="@2:", type=("build", "run"))
depends_on("py-python-dateutil@2.8.1:", when="@1.4:", type=("build", "run"))
depends_on("py-python-dateutil@2.7.3:", when="@1.1:", type=("build", "run"))

View File

@ -64,8 +64,10 @@ class PyPyarrow(PythonPackage, CudaPackage):
depends_on("py-numpy@1.16.6:", type=("build", "run"), when="@3:")
# Prior to python 3.9 numpy must be >=0.14,<1.25
depends_on("py-numpy@0.14:1.24", when="^python@:3.8")
depends_on("py-numpy@1.25:", when="^python@3.9:")
depends_on("py-numpy@0.14:1.24", when="^python@:3.8", type=("build", "run"))
depends_on("py-numpy@1.25:", when="^python@3.9:", type=("build", "run"))
# https://github.com/apache/arrow/issues/39532
depends_on("py-numpy@:1", when="@:15", type=("build", "run"))
arrow_versions = (
"@0.9.0",

View File

@ -50,6 +50,8 @@ class PyPythran(PythonPackage):
depends_on("py-gast@0.3:", when="@0.9.4:0.9.5", type=("build", "run"))
depends_on("py-gast", when="@:0.9.3", type=("build", "run"))
depends_on("py-numpy", type=("build", "run"))
# https://github.com/serge-sans-paille/pythran/issues/2189
depends_on("py-numpy@:1", when="@:0.15", type=("build", "run"))
depends_on("py-beniget@0.4", when="@0.9.12:", type=("build", "run"))
depends_on("py-beniget@0.3", when="@0.9.7:0.9.11", type=("build", "run"))
depends_on("py-beniget@0.2.1:0.2", when="@0.9.6", type=("build", "run"))

View File

@ -29,3 +29,5 @@ class PyPywavelets(PythonPackage):
depends_on("py-numpy@1.17.3:", when="@1.2:", type=("build", "run"))
depends_on("py-numpy@1.13.3:", when="@1.1.1:", type=("build", "run"))
depends_on("py-numpy@1.9.1:", type=("build", "run"))
# https://github.com/PyWavelets/pywt/pull/731
depends_on("py-numpy@:1", when="@:1.5", type=("build", "run"))

View File

@ -23,4 +23,6 @@ class PyQutip(PythonPackage):
depends_on("py-cython@0.29.20:", type="build")
depends_on("py-numpy@1.16.6:", type=("build", "run"))
# https://github.com/qutip/qutip/pull/2421
depends_on("py-numpy@:1", type=("build", "run"))
depends_on("py-scipy@1.0:", type=("build", "run"))

View File

@ -55,10 +55,11 @@ class PyRasterio(PythonPackage):
depends_on("py-click@4:7", when="@:1.2.3", type=("build", "run"))
depends_on("py-cligj@0.5:", type=("build", "run"))
depends_on("py-importlib-metadata", when="@1.3.10: ^python@:3.9", type=("build", "run"))
depends_on("py-numpy@1.18:", when="@1.3.10:", type=("build", "link", "run"))
depends_on("py-numpy@1.18:1", when="@1.3.0:1.3.9", type=("build", "link", "run"))
depends_on("py-numpy@1.15:1", when="@1.2:", type=("build", "link", "run"))
depends_on("py-numpy@1.18:", when="@1.3:", type=("build", "link", "run"))
depends_on("py-numpy@1.15:", when="@1.2:", type=("build", "link", "run"))
depends_on("py-numpy", type=("build", "link", "run"))
# https://github.com/rasterio/rasterio/issues/3024
depends_on("py-numpy@:1", when="@:1.3.9", type=("build", "link", "run"))
depends_on("py-snuggs@1.4.1:", type=("build", "run"))
depends_on("py-click-plugins", type=("build", "run"))
depends_on("py-setuptools", type=("build", "run"))

View File

@ -59,6 +59,8 @@ class PyScikitImage(PythonPackage):
depends_on("py-numpy@1.14.1:", when="@0.16")
depends_on("py-numpy@1.11:", when="@0.13:0.15")
depends_on("py-numpy@1.7.2:", when="@:0.12")
# https://github.com/scikit-image/scikit-image/issues/7282
depends_on("py-numpy@:1", when="@:0.23.0")
with default_args(type=("build", "run")):
depends_on("py-scipy@1.9:", when="@0.23:")

View File

@ -67,12 +67,13 @@ class PyScikitLearn(PythonPackage):
depends_on("py-cython@0.28.5:2", when="@0.21:1.0.1")
with default_args(type=("build", "link", "run")):
depends_on("py-numpy@1.19.5:", when="@1.4.2:")
depends_on("py-numpy@1.19.5:1", when="@1.4.0:1.4.1")
depends_on("py-numpy@1.17.3:1", when="@1.1:1.3")
depends_on("py-numpy@1.14.6:1", when="@1.0")
depends_on("py-numpy@1.13.3:1", when="@0.23:0.24")
depends_on("py-numpy@1.11.0:1", when="@0.21:0.22")
depends_on("py-numpy@1.19.5:", when="@1.4:")
depends_on("py-numpy@1.17.3:", when="@1.1:1.3")
depends_on("py-numpy@1.14.6:", when="@1.0")
depends_on("py-numpy@1.13.3:", when="@0.23:0.24")
depends_on("py-numpy@1.11.0:", when="@0.21:0.22")
# https://github.com/scikit-learn/scikit-learn/issues/27075
depends_on("py-numpy@:1", when="@:1.4.1")
with default_args(type=("build", "run")):
depends_on("py-scipy@1.6:", when="@1.4:")

View File

@ -28,6 +28,8 @@ class PyScikitSparse(PythonPackage):
depends_on("py-cython@0.22:", when="@0.4.12", type="build")
depends_on("py-cython@0.22:0.29", when="@:0.4.11", type="build")
depends_on("py-numpy@1.13.3:", type=("build", "link", "run"))
# https://github.com/scikit-sparse/scikit-sparse/issues/120
depends_on("py-numpy@:1", type=("build", "link", "run"))
depends_on("py-scipy@0.19:", type="run")
depends_on("suite-sparse", type=("build", "link", "run"))

View File

@ -39,6 +39,8 @@ class PySeaborn(PythonPackage):
depends_on("py-numpy@1.15:", when="@0.11:", type=("build", "run"))
depends_on("py-numpy@1.9.3:", when="@0.9:", type=("build", "run"))
depends_on("py-numpy", type=("build", "run"))
# https://github.com/mwaskom/seaborn/pull/3683
depends_on("py-numpy@:1", when="@:0.13.1", type=("build", "run"))
depends_on("py-pandas@0.25:", when="@0.12:", type=("build", "run"))
depends_on("py-pandas@0.23:", when="@0.11:", type=("build", "run"))
depends_on("py-pandas@0.22:", when="@0.10:", type=("build", "run"))

View File

@ -43,6 +43,7 @@ class PyShapely(PythonPackage):
depends_on("py-setuptools@61:", when="@2:", type="build")
depends_on("py-setuptools@:63", when="@:1", type="build")
depends_on("py-numpy@1.14:2", when="@2.0.4:", type=("build", "link", "run"))
# https://github.com/shapely/shapely/issues/1972
depends_on("py-numpy@1.14:1", when="@2.0.0:2.0.3", type=("build", "link", "run"))
depends_on("py-numpy@:1", when="@1", type=("build", "link", "run"))
depends_on("py-pytest", type="test")

View File

@ -22,3 +22,5 @@ class PySpglib(PythonPackage):
depends_on("py-setuptools@18.0:", type="build")
depends_on("py-numpy", type=("build", "run"))
# https://github.com/spglib/spglib/issues/407
depends_on("py-numpy@:1", type=("build", "run"))

View File

@ -51,6 +51,8 @@ class PyStatsmodels(PythonPackage):
depends_on("py-numpy@1.17:", when="@0.13:", type=("build", "link", "run"))
depends_on("py-numpy@1.15:", when="@0.12.1:", type=("build", "link", "run"))
depends_on("py-numpy@1.11:", when="@0.10.1:", type=("build", "link", "run"))
# https://github.com/statsmodels/statsmodels/issues/9194
depends_on("py-numpy@:1", when="@:0.14.1", type=("build", "link", "run"))
depends_on("py-scipy@1.4:", when="@0.13.5:", type=("build", "run"))
conflicts("^py-scipy@1.9.2")
depends_on("py-scipy@1.3:", when="@0.13:", type=("build", "run"))

View File

@ -45,6 +45,8 @@ class PyTables(PythonPackage):
# requirements.txt
depends_on("py-numpy@1.19:", when="@3.8:", type=("build", "run"))
depends_on("py-numpy@1.9.3:", type=("build", "run"))
# https://github.com/PyTables/PyTables/issues/1083
depends_on("py-numpy@:1", type=("build", "run"))
depends_on("py-numexpr@2.6.2:", type=("build", "run"))
depends_on("py-packaging", when="@3.7:", type=("build", "run"))
depends_on("py-py-cpuinfo", when="@3.8:", type=("build", "run"))

View File

@ -31,3 +31,5 @@ class PyTifffile(PythonPackage):
depends_on("py-numpy@1.19.2:", when="@2022.2.2:", type=("build", "run"))
depends_on("py-numpy@1.15.1:", when="@2020.10.1:", type=("build", "run"))
depends_on("py-numpy@1.8.2:", type=("build", "run"))
# https://github.com/cgohlke/tifffile/issues/252
depends_on("py-numpy@:1", when="@:2024.4.23", type=("build", "run"))

View File

@ -165,6 +165,8 @@ class PyTorch(PythonPackage, CudaPackage, ROCmPackage):
depends_on("py-setuptools")
depends_on("py-astunparse", when="@1.13:")
depends_on("py-numpy@1.16.6:")
# https://github.com/pytorch/pytorch/issues/107302
depends_on("py-numpy@:1", when="@:2.2")
depends_on("py-pyyaml")
depends_on("py-requests", when="@1.13:")

View File

@ -64,6 +64,8 @@ class PyTorchgeo(PythonPackage):
depends_on("py-matplotlib@3.3:", type=("build", "run"))
depends_on("py-numpy@1.19.3:", when="@0.5:", type=("build", "run"))
depends_on("py-numpy@1.17.2:", type=("build", "run"))
# https://github.com/microsoft/torchgeo/pull/2151
depends_on("py-numpy@:1", when="@:0.5", type=("build", "run"))
depends_on("py-pandas@1.1.3:", when="@0.5:", type=("build", "run"))
depends_on("pil@8:", when="@0.5:", type=("build", "run"))
depends_on("pil@6.2:", type=("build", "run"))

View File

@ -105,6 +105,8 @@ class PyTorchvision(PythonPackage):
# setup.py
depends_on("py-setuptools", type="build")
depends_on("py-numpy", type=("build", "run"))
# https://github.com/pytorch/vision/issues/8460
depends_on("py-numpy@:1", when="@:0.18", type=("build", "run"))
depends_on("pil@5.3:", when="@0.10:", type=("build", "run"))
depends_on("pil@4.1.1:", type=("build", "run"))

View File

@ -42,6 +42,8 @@ class PyXgboost(PythonPackage):
depends_on("py-pip@:23.0", type="build")
depends_on("py-numpy", type=("build", "run"))
# https://github.com/dmlc/xgboost/issues/10221
depends_on("py-numpy@:1", when="@:2.0", type=("build", "run"))
depends_on("py-scipy", type=("build", "run"))
depends_on("py-pandas", when="+pandas", type=("build", "run"))

View File

@ -56,6 +56,8 @@ class PyYt(PythonPackage):
depends_on("py-more-itertools@8.4:", when="@4.1.2:")
depends_on("py-numpy@1.10.4:", type=("build", "run"))
depends_on("py-numpy@1.14.5:", type=("build", "run"), when="@4.1.2:")
# https://github.com/yt-project/yt/pull/4859
depends_on("py-numpy@:1", when="@:4.3.0", type=("build", "run"))
depends_on("py-packaging@20.9:", type=("build", "run"), when="@4.1.2:")
# PIL/pillow and pyparsing dependency is handled by matplotlib
depends_on("py-tomli-w@0.4:", type=("build", "run"), when="@4.1.2:")

View File

@ -31,6 +31,8 @@ class PyZarr(PythonPackage):
depends_on("py-asciitree", type=("build", "run"))
depends_on("py-numpy@1.21.1:", type=("build", "run"), when="@2.17:")
depends_on("py-numpy@1.7:", type=("build", "run"))
# https://github.com/zarr-developers/zarr-python/issues/1818
depends_on("py-numpy@:1", when="@:2.17", type=("build", "run"))
depends_on("py-fasteners", type=("build", "run"))
depends_on("py-numcodecs@0.10:", type=("build", "run"), when="@2.17:")
depends_on("py-numcodecs@0.6.4:", type=("build", "run"), when="@2.4.0:")

View File

@ -70,6 +70,8 @@ class Rdkit(CMakePackage):
depends_on("eigen@3:", when="+descriptors3d")
depends_on("python@3:", when="+python")
depends_on("py-numpy", when="+python")
# https://github.com/rdkit/rdkit/issues/7477
depends_on("py-numpy@:1", when="@:2024.03.3+python")
extends("python", when="+python")
@ -82,6 +84,8 @@ class Rdkit(CMakePackage):
with when("@:2021_09_5"):
depends_on("python@3:")
depends_on("py-numpy")
# https://github.com/rdkit/rdkit/issues/7477
depends_on("py-numpy@:1")
extends("python")
def cmake_args(self):

View File

@ -26,6 +26,8 @@ class Treelite(CMakePackage):
depends_on("py-wheel", when="+python", type="build")
depends_on("py-setuptools", when="+python", type="build")
depends_on("py-numpy", when="+python", type=("build", "run"))
# https://github.com/dmlc/treelite/issues/560
depends_on("py-numpy@:1", when="@:4.2.0+python", type=("build", "run"))
depends_on("py-scipy", when="+python", type=("build", "run"))
build_directory = "build"