diff options
58 files changed, 193 insertions, 73 deletions
diff --git a/var/spack/repos/builtin/packages/boost/package.py b/var/spack/repos/builtin/packages/boost/package.py index 4e26e15571..b4d5b6b43f 100644 --- a/var/spack/repos/builtin/packages/boost/package.py +++ b/var/spack/repos/builtin/packages/boost/package.py @@ -245,6 +245,8 @@ class Boost(Package): 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") diff --git a/var/spack/repos/builtin/packages/gdal/package.py b/var/spack/repos/builtin/packages/gdal/package.py index b6ae19570e..97016baf99 100644 --- a/var/spack/repos/builtin/packages/gdal/package.py +++ b/var/spack/repos/builtin/packages/gdal/package.py @@ -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") diff --git a/var/spack/repos/builtin/packages/gnuradio/package.py b/var/spack/repos/builtin/packages/gnuradio/package.py index cb4f86c7a8..4a6d1bf1a4 100644 --- a/var/spack/repos/builtin/packages/gnuradio/package.py +++ b/var/spack/repos/builtin/packages/gnuradio/package.py @@ -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")) diff --git a/var/spack/repos/builtin/packages/opencv/package.py b/var/spack/repos/builtin/packages/opencv/package.py index 02b10d0d72..5140fb2ebe 100644 --- a/var/spack/repos/builtin/packages/opencv/package.py +++ b/var/spack/repos/builtin/packages/opencv/package.py @@ -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"): diff --git a/var/spack/repos/builtin/packages/py-arm-pyart/package.py b/var/spack/repos/builtin/packages/py-arm-pyart/package.py index 433e7298fe..7a44c92fd3 100644 --- a/var/spack/repos/builtin/packages/py-arm-pyart/package.py +++ b/var/spack/repos/builtin/packages/py-arm-pyart/package.py @@ -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")) diff --git a/var/spack/repos/builtin/packages/py-astropy-healpix/package.py b/var/spack/repos/builtin/packages/py-astropy-healpix/package.py index 35a01f483c..512a84a4bb 100644 --- a/var/spack/repos/builtin/packages/py-astropy-healpix/package.py +++ b/var/spack/repos/builtin/packages/py-astropy-healpix/package.py @@ -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")) diff --git a/var/spack/repos/builtin/packages/py-astropy/package.py b/var/spack/repos/builtin/packages/py-astropy/package.py index df43cf9e3d..5fd20ce6eb 100644 --- a/var/spack/repos/builtin/packages/py-astropy/package.py +++ b/var/spack/repos/builtin/packages/py-astropy/package.py @@ -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")) diff --git a/var/spack/repos/builtin/packages/py-biopython/package.py b/var/spack/repos/builtin/packages/py-biopython/package.py index 65c86fdbce..77181aaab1 100644 --- a/var/spack/repos/builtin/packages/py-biopython/package.py +++ b/var/spack/repos/builtin/packages/py-biopython/package.py @@ -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") diff --git a/var/spack/repos/builtin/packages/py-bokeh/package.py b/var/spack/repos/builtin/packages/py-bokeh/package.py index 8f79fb16c9..1384201b2d 100644 --- a/var/spack/repos/builtin/packages/py-bokeh/package.py +++ b/var/spack/repos/builtin/packages/py-bokeh/package.py @@ -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:") diff --git a/var/spack/repos/builtin/packages/py-boost-histogram/package.py b/var/spack/repos/builtin/packages/py-boost-histogram/package.py index bd74376041..7684442bb9 100644 --- a/var/spack/repos/builtin/packages/py-boost-histogram/package.py +++ b/var/spack/repos/builtin/packages/py-boost-histogram/package.py @@ -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")) diff --git a/var/spack/repos/builtin/packages/py-bottleneck/package.py b/var/spack/repos/builtin/packages/py-bottleneck/package.py index 334975f9e1..5d1b31b36f 100644 --- a/var/spack/repos/builtin/packages/py-bottleneck/package.py +++ b/var/spack/repos/builtin/packages/py-bottleneck/package.py @@ -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")) diff --git a/var/spack/repos/builtin/packages/py-cartopy/package.py b/var/spack/repos/builtin/packages/py-cartopy/package.py index 941996aa09..891ea258b3 100644 --- a/var/spack/repos/builtin/packages/py-cartopy/package.py +++ b/var/spack/repos/builtin/packages/py-cartopy/package.py @@ -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:") diff --git a/var/spack/repos/builtin/packages/py-contourpy/package.py b/var/spack/repos/builtin/packages/py-contourpy/package.py index 9d13c9957a..b6e9c3c475 100644 --- a/var/spack/repos/builtin/packages/py-contourpy/package.py +++ b/var/spack/repos/builtin/packages/py-contourpy/package.py @@ -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") diff --git a/var/spack/repos/builtin/packages/py-dask/package.py b/var/spack/repos/builtin/packages/py-dask/package.py index 5980a9efe4..8740378098 100644 --- a/var/spack/repos/builtin/packages/py-dask/package.py +++ b/var/spack/repos/builtin/packages/py-dask/package.py @@ -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") diff --git a/var/spack/repos/builtin/packages/py-h5py/package.py b/var/spack/repos/builtin/packages/py-h5py/package.py index c4fd95118d..10b80fc9e7 100644 --- a/var/spack/repos/builtin/packages/py-h5py/package.py +++ b/var/spack/repos/builtin/packages/py-h5py/package.py @@ -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) diff --git a/var/spack/repos/builtin/packages/py-hypothesis/package.py b/var/spack/repos/builtin/packages/py-hypothesis/package.py index e06e14ff84..cbec4e5c52 100644 --- a/var/spack/repos/builtin/packages/py-hypothesis/package.py +++ b/var/spack/repos/builtin/packages/py-hypothesis/package.py @@ -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") diff --git a/var/spack/repos/builtin/packages/py-imagecodecs/package.py b/var/spack/repos/builtin/packages/py-imagecodecs/package.py index bd425abe9b..03fd7bd0bd 100644 --- a/var/spack/repos/builtin/packages/py-imagecodecs/package.py +++ b/var/spack/repos/builtin/packages/py-imagecodecs/package.py @@ -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")) diff --git a/var/spack/repos/builtin/packages/py-imageio/package.py b/var/spack/repos/builtin/packages/py-imageio/package.py index 950bb87264..c204ef6c61 100644 --- a/var/spack/repos/builtin/packages/py-imageio/package.py +++ b/var/spack/repos/builtin/packages/py-imageio/package.py @@ -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") diff --git a/var/spack/repos/builtin/packages/py-iminuit/package.py b/var/spack/repos/builtin/packages/py-iminuit/package.py index b22065c74e..d3ec41afc1 100644 --- a/var/spack/repos/builtin/packages/py-iminuit/package.py +++ b/var/spack/repos/builtin/packages/py-iminuit/package.py @@ -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") diff --git a/var/spack/repos/builtin/packages/py-jax/package.py b/var/spack/repos/builtin/packages/py-jax/package.py index 38f9b85529..e97c0966ba 100644 --- a/var/spack/repos/builtin/packages/py-jax/package.py +++ b/var/spack/repos/builtin/packages/py-jax/package.py @@ -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:") diff --git a/var/spack/repos/builtin/packages/py-jaxlib/package.py b/var/spack/repos/builtin/packages/py-jaxlib/package.py index 04e0d50819..601253ce80 100644 --- a/var/spack/repos/builtin/packages/py-jaxlib/package.py +++ b/var/spack/repos/builtin/packages/py-jaxlib/package.py @@ -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:") diff --git a/var/spack/repos/builtin/packages/py-keras/package.py b/var/spack/repos/builtin/packages/py-keras/package.py index ba648d9e95..e2456f9e66 100644 --- a/var/spack/repos/builtin/packages/py-keras/package.py +++ b/var/spack/repos/builtin/packages/py-keras/package.py @@ -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:") diff --git a/var/spack/repos/builtin/packages/py-laspy/package.py b/var/spack/repos/builtin/packages/py-laspy/package.py index babd8bf528..1e90f03aaa 100644 --- a/var/spack/repos/builtin/packages/py-laspy/package.py +++ b/var/spack/repos/builtin/packages/py-laspy/package.py @@ -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")) diff --git a/var/spack/repos/builtin/packages/py-lightgbm/package.py b/var/spack/repos/builtin/packages/py-lightgbm/package.py index 0596e07ecc..8dac08dd8e 100644 --- a/var/spack/repos/builtin/packages/py-lightgbm/package.py +++ b/var/spack/repos/builtin/packages/py-lightgbm/package.py @@ -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")) diff --git a/var/spack/repos/builtin/packages/py-lightly/package.py b/var/spack/repos/builtin/packages/py-lightly/package.py index be9259fa78..5a34d6cfa6 100644 --- a/var/spack/repos/builtin/packages/py-lightly/package.py +++ b/var/spack/repos/builtin/packages/py-lightly/package.py @@ -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")) diff --git a/var/spack/repos/builtin/packages/py-matplotlib/package.py b/var/spack/repos/builtin/packages/py-matplotlib/package.py index ee19d18eaa..a0cd64a152 100644 --- a/var/spack/repos/builtin/packages/py-matplotlib/package.py +++ b/var/spack/repos/builtin/packages/py-matplotlib/package.py @@ -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")) diff --git a/var/spack/repos/builtin/packages/py-mdanalysis/package.py b/var/spack/repos/builtin/packages/py-mdanalysis/package.py index 69f5a0c853..d4c5a722f5 100644 --- a/var/spack/repos/builtin/packages/py-mdanalysis/package.py +++ b/var/spack/repos/builtin/packages/py-mdanalysis/package.py @@ -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")) diff --git a/var/spack/repos/builtin/packages/py-ml-dtypes/package.py b/var/spack/repos/builtin/packages/py-ml-dtypes/package.py index c90978d2b5..d86979f287 100644 --- a/var/spack/repos/builtin/packages/py-ml-dtypes/package.py +++ b/var/spack/repos/builtin/packages/py-ml-dtypes/package.py @@ -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") diff --git a/var/spack/repos/builtin/packages/py-mne/package.py b/var/spack/repos/builtin/packages/py-mne/package.py index bf1224a5ca..53edb8c9a5 100644 --- a/var/spack/repos/builtin/packages/py-mne/package.py +++ b/var/spack/repos/builtin/packages/py-mne/package.py @@ -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")) # * diff --git a/var/spack/repos/builtin/packages/py-modin/package.py b/var/spack/repos/builtin/packages/py-modin/package.py index db594d0051..b353982e1e 100644 --- a/var/spack/repos/builtin/packages/py-modin/package.py +++ b/var/spack/repos/builtin/packages/py-modin/package.py @@ -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")) diff --git a/var/spack/repos/builtin/packages/py-netcdf4/package.py b/var/spack/repos/builtin/packages/py-netcdf4/package.py index 1daa2c517d..e36ed870ea 100644 --- a/var/spack/repos/builtin/packages/py-netcdf4/package.py +++ b/var/spack/repos/builtin/packages/py-netcdf4/package.py @@ -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") diff --git a/var/spack/repos/builtin/packages/py-networkx/package.py b/var/spack/repos/builtin/packages/py-networkx/package.py index 09d123e0a3..c8bf1ac0f9 100644 --- a/var/spack/repos/builtin/packages/py-networkx/package.py +++ b/var/spack/repos/builtin/packages/py-networkx/package.py @@ -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")) diff --git a/var/spack/repos/builtin/packages/py-numcodecs/package.py b/var/spack/repos/builtin/packages/py-numcodecs/package.py index 5414661794..ceb4baf400 100644 --- a/var/spack/repos/builtin/packages/py-numcodecs/package.py +++ b/var/spack/repos/builtin/packages/py-numcodecs/package.py @@ -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") diff --git a/var/spack/repos/builtin/packages/py-numexpr/package.py b/var/spack/repos/builtin/packages/py-numexpr/package.py index 0bf27310fd..da3e2c6d04 100644 --- a/var/spack/repos/builtin/packages/py-numexpr/package.py +++ b/var/spack/repos/builtin/packages/py-numexpr/package.py @@ -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") diff --git a/var/spack/repos/builtin/packages/py-numpy/package.py b/var/spack/repos/builtin/packages/py-numpy/package.py index 5b2a030319..c2c8e8cd15 100644 --- a/var/spack/repos/builtin/packages/py-numpy/package.py +++ b/var/spack/repos/builtin/packages/py-numpy/package.py @@ -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")) - - # Required to use --config-settings - depends_on("py-pip@23.1:", when="@1.26:", type="build") - - # 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") + 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:") + + # Build dependencies (do not include upper bound unless known issues) + 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): diff --git a/var/spack/repos/builtin/packages/py-pandas/package.py b/var/spack/repos/builtin/packages/py-pandas/package.py index 86ff7723cd..783d41678b 100644 --- a/var/spack/repos/builtin/packages/py-pandas/package.py +++ b/var/spack/repos/builtin/packages/py-pandas/package.py @@ -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")) diff --git a/var/spack/repos/builtin/packages/py-pyarrow/package.py b/var/spack/repos/builtin/packages/py-pyarrow/package.py index af23fd4d4c..8b641d5ca1 100644 --- a/var/spack/repos/builtin/packages/py-pyarrow/package.py +++ b/var/spack/repos/builtin/packages/py-pyarrow/package.py @@ -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", diff --git a/var/spack/repos/builtin/packages/py-pythran/package.py b/var/spack/repos/builtin/packages/py-pythran/package.py index 393182c009..8bbc18094b 100644 --- a/var/spack/repos/builtin/packages/py-pythran/package.py +++ b/var/spack/repos/builtin/packages/py-pythran/package.py @@ -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")) diff --git a/var/spack/repos/builtin/packages/py-pywavelets/package.py b/var/spack/repos/builtin/packages/py-pywavelets/package.py index 88fb787939..ba496569c2 100644 --- a/var/spack/repos/builtin/packages/py-pywavelets/package.py +++ b/var/spack/repos/builtin/packages/py-pywavelets/package.py @@ -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")) diff --git a/var/spack/repos/builtin/packages/py-qutip/package.py b/var/spack/repos/builtin/packages/py-qutip/package.py index 2b3237341d..b7579eb4d2 100644 --- a/var/spack/repos/builtin/packages/py-qutip/package.py +++ b/var/spack/repos/builtin/packages/py-qutip/package.py @@ -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")) diff --git a/var/spack/repos/builtin/packages/py-rasterio/package.py b/var/spack/repos/builtin/packages/py-rasterio/package.py index cf4ed73c45..b5beaae8f2 100644 --- a/var/spack/repos/builtin/packages/py-rasterio/package.py +++ b/var/spack/repos/builtin/packages/py-rasterio/package.py @@ -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")) diff --git a/var/spack/repos/builtin/packages/py-scikit-image/package.py b/var/spack/repos/builtin/packages/py-scikit-image/package.py index 12301962e1..77249e8dc1 100644 --- a/var/spack/repos/builtin/packages/py-scikit-image/package.py +++ b/var/spack/repos/builtin/packages/py-scikit-image/package.py @@ -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:") diff --git a/var/spack/repos/builtin/packages/py-scikit-learn/package.py b/var/spack/repos/builtin/packages/py-scikit-learn/package.py index f54513e8d7..26acadb05b 100644 --- a/var/spack/repos/builtin/packages/py-scikit-learn/package.py +++ b/var/spack/repos/builtin/packages/py-scikit-learn/package.py @@ -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:") diff --git a/var/spack/repos/builtin/packages/py-scikit-sparse/package.py b/var/spack/repos/builtin/packages/py-scikit-sparse/package.py index a348d94073..a96abf60f0 100644 --- a/var/spack/repos/builtin/packages/py-scikit-sparse/package.py +++ b/var/spack/repos/builtin/packages/py-scikit-sparse/package.py @@ -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")) diff --git a/var/spack/repos/builtin/packages/py-seaborn/package.py b/var/spack/repos/builtin/packages/py-seaborn/package.py index 62226eaf7b..49333345d4 100644 --- a/var/spack/repos/builtin/packages/py-seaborn/package.py +++ b/var/spack/repos/builtin/packages/py-seaborn/package.py @@ -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")) diff --git a/var/spack/repos/builtin/packages/py-shapely/package.py b/var/spack/repos/builtin/packages/py-shapely/package.py index e5869cca79..dc15555f3f 100644 --- a/var/spack/repos/builtin/packages/py-shapely/package.py +++ b/var/spack/repos/builtin/packages/py-shapely/package.py @@ -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") diff --git a/var/spack/repos/builtin/packages/py-spglib/package.py b/var/spack/repos/builtin/packages/py-spglib/package.py index eb65819c92..ab7efac443 100644 --- a/var/spack/repos/builtin/packages/py-spglib/package.py +++ b/var/spack/repos/builtin/packages/py-spglib/package.py @@ -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")) diff --git a/var/spack/repos/builtin/packages/py-statsmodels/package.py b/var/spack/repos/builtin/packages/py-statsmodels/package.py index d4ea3153fc..b60258eb6c 100644 --- a/var/spack/repos/builtin/packages/py-statsmodels/package.py +++ b/var/spack/repos/builtin/packages/py-statsmodels/package.py @@ -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")) diff --git a/var/spack/repos/builtin/packages/py-tables/package.py b/var/spack/repos/builtin/packages/py-tables/package.py index 262e7e4b82..fbbed6be8c 100644 --- a/var/spack/repos/builtin/packages/py-tables/package.py +++ b/var/spack/repos/builtin/packages/py-tables/package.py @@ -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")) diff --git a/var/spack/repos/builtin/packages/py-tifffile/package.py b/var/spack/repos/builtin/packages/py-tifffile/package.py index ed0942d8db..11b0077542 100644 --- a/var/spack/repos/builtin/packages/py-tifffile/package.py +++ b/var/spack/repos/builtin/packages/py-tifffile/package.py @@ -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")) diff --git a/var/spack/repos/builtin/packages/py-torch/package.py b/var/spack/repos/builtin/packages/py-torch/package.py index e2616d2972..9cc046e0dd 100644 --- a/var/spack/repos/builtin/packages/py-torch/package.py +++ b/var/spack/repos/builtin/packages/py-torch/package.py @@ -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:") diff --git a/var/spack/repos/builtin/packages/py-torchgeo/package.py b/var/spack/repos/builtin/packages/py-torchgeo/package.py index b3a630274d..9ebee2bdde 100644 --- a/var/spack/repos/builtin/packages/py-torchgeo/package.py +++ b/var/spack/repos/builtin/packages/py-torchgeo/package.py @@ -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")) diff --git a/var/spack/repos/builtin/packages/py-torchvision/package.py b/var/spack/repos/builtin/packages/py-torchvision/package.py index f0e4d785b2..2aa65dedf4 100644 --- a/var/spack/repos/builtin/packages/py-torchvision/package.py +++ b/var/spack/repos/builtin/packages/py-torchvision/package.py @@ -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")) diff --git a/var/spack/repos/builtin/packages/py-xgboost/package.py b/var/spack/repos/builtin/packages/py-xgboost/package.py index 2fa4b187ed..609d9f4d48 100644 --- a/var/spack/repos/builtin/packages/py-xgboost/package.py +++ b/var/spack/repos/builtin/packages/py-xgboost/package.py @@ -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")) diff --git a/var/spack/repos/builtin/packages/py-yt/package.py b/var/spack/repos/builtin/packages/py-yt/package.py index 183362dfe3..f17cd4388b 100644 --- a/var/spack/repos/builtin/packages/py-yt/package.py +++ b/var/spack/repos/builtin/packages/py-yt/package.py @@ -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:") diff --git a/var/spack/repos/builtin/packages/py-zarr/package.py b/var/spack/repos/builtin/packages/py-zarr/package.py index 6d3dbf9b2d..7da4fce325 100644 --- a/var/spack/repos/builtin/packages/py-zarr/package.py +++ b/var/spack/repos/builtin/packages/py-zarr/package.py @@ -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:") diff --git a/var/spack/repos/builtin/packages/rdkit/package.py b/var/spack/repos/builtin/packages/rdkit/package.py index 811068e1c1..6067f015db 100644 --- a/var/spack/repos/builtin/packages/rdkit/package.py +++ b/var/spack/repos/builtin/packages/rdkit/package.py @@ -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): diff --git a/var/spack/repos/builtin/packages/treelite/package.py b/var/spack/repos/builtin/packages/treelite/package.py index c3ee15474c..f0f92834fc 100644 --- a/var/spack/repos/builtin/packages/treelite/package.py +++ b/var/spack/repos/builtin/packages/treelite/package.py @@ -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" |