diff --git a/var/spack/repos/builtin/packages/nrm/package.py b/var/spack/repos/builtin/packages/nrm/package.py index 910a992b98..8312396725 100644 --- a/var/spack/repos/builtin/packages/nrm/package.py +++ b/var/spack/repos/builtin/packages/nrm/package.py @@ -14,6 +14,9 @@ class Nrm(PythonPackage): version("0.1.0", sha256="911a848042fa50ed216c818e0667bcd3e4219687eb5a35476b7313abe12106dc") depends_on("py-setuptools", type=("build")) + # using py-pip@23.1 results in + # ValueError: ZIP does not support timestamps before 1980 + depends_on("py-pip@:23.0", type="build") depends_on("py-six", type=("build", "run")) depends_on("py-pyzmq@17.1.2", type=("build", "run")) diff --git a/var/spack/repos/builtin/packages/py-brian2/package.py b/var/spack/repos/builtin/packages/py-brian2/package.py index b22aef925f..f9ffeab3c9 100644 --- a/var/spack/repos/builtin/packages/py-brian2/package.py +++ b/var/spack/repos/builtin/packages/py-brian2/package.py @@ -22,6 +22,9 @@ class PyBrian2(PythonPackage): depends_on("python@2.7:", type=("build", "run")) depends_on("python@3.6:", type=("build", "run"), when="@2.4:") depends_on("python@3.7:", type=("build", "run"), when="@2.5:") + # in newer pip versions --install-option does not exist + depends_on("py-pip@:23.0", type="build") + depends_on("py-numpy@1.10:", type=("build", "run")) depends_on("py-numpy@1.15:", type=("build", "run"), when="@2.4:") depends_on("py-numpy@1.17:", type=("build", "run"), when="@2.5:") diff --git a/var/spack/repos/builtin/packages/py-cmake/package.py b/var/spack/repos/builtin/packages/py-cmake/package.py index 99aead376a..f6c3b9f782 100644 --- a/var/spack/repos/builtin/packages/py-cmake/package.py +++ b/var/spack/repos/builtin/packages/py-cmake/package.py @@ -22,6 +22,8 @@ class PyCmake(PythonPackage): depends_on("ninja", type="build") depends_on("py-scikit-build@0.12:", type="build") depends_on("py-setuptools@42:", type="build") + # in newer pip versions --install-option does not exist + depends_on("py-pip@:23.0", type="build") depends_on("git", type="build") depends_on("cmake@3.22.2", type=("build", "link", "run"), when="@3.22.2") depends_on("cmake@3.21.4", type=("build", "link", "run"), when="@3.21.4") diff --git a/var/spack/repos/builtin/packages/py-fastrlock/package.py b/var/spack/repos/builtin/packages/py-fastrlock/package.py index 80f2c46e13..8d025b1afa 100644 --- a/var/spack/repos/builtin/packages/py-fastrlock/package.py +++ b/var/spack/repos/builtin/packages/py-fastrlock/package.py @@ -18,6 +18,8 @@ class PyFastrlock(PythonPackage): depends_on("py-setuptools", type="build") depends_on("py-cython", type="build") + # in newer pip versions --install-option does not exist + depends_on("py-pip@:23.0", type="build") def install_options(self, spec, prefix): return ["--with-cython"] diff --git a/var/spack/repos/builtin/packages/py-lightgbm/package.py b/var/spack/repos/builtin/packages/py-lightgbm/package.py index ed4c5ee35a..14b1a2e34f 100644 --- a/var/spack/repos/builtin/packages/py-lightgbm/package.py +++ b/var/spack/repos/builtin/packages/py-lightgbm/package.py @@ -18,6 +18,8 @@ class PyLightgbm(PythonPackage): variant("mpi", default=False, description="Build with mpi support") depends_on("py-setuptools", type="build") + # in newer pip versions --install-option does not exist + depends_on("py-pip@:23.0", when="+mpi", type="build") depends_on("py-wheel", type=("build", "run")) depends_on("py-numpy", type=("build", "run")) depends_on("py-scipy", type=("build", "run")) diff --git a/var/spack/repos/builtin/packages/py-mpi4py/package.py b/var/spack/repos/builtin/packages/py-mpi4py/package.py index f0d36ac7ec..96133bff2c 100644 --- a/var/spack/repos/builtin/packages/py-mpi4py/package.py +++ b/var/spack/repos/builtin/packages/py-mpi4py/package.py @@ -31,6 +31,8 @@ class PyMpi4py(PythonPackage): depends_on("python@2.6:2.7,3.2:") depends_on("python@2.7:2.8,3.5:", when="@3.1:") depends_on("py-setuptools@40.9:", type="build") + # in newer pip versions --install-option does not exist + depends_on("py-pip@:23.0", type="build") depends_on("mpi") depends_on("py-cython@0.27.0:", type="build") diff --git a/var/spack/repos/builtin/packages/py-pip/package.py b/var/spack/repos/builtin/packages/py-pip/package.py index 3d4a190c05..149f042756 100644 --- a/var/spack/repos/builtin/packages/py-pip/package.py +++ b/var/spack/repos/builtin/packages/py-pip/package.py @@ -17,6 +17,11 @@ class PyPip(Package, PythonExtension): maintainers("adamjstewart", "pradyunsg") + version( + "23.1.2", + sha256="3ef6ac33239e4027d9a5598a381b9d30880a1477e50039db2eac6e8a8f6d1b18", + expand=False, + ) version( "23.0", sha256="b5f88adff801f5ef052bcdef3daa31b55eb67b0fccd6d0106c206fa248e0463c", @@ -80,11 +85,6 @@ class PyPip(Package, PythonExtension): extends("python") depends_on("python@3.7:", when="@22:", type=("build", "run")) - depends_on("python@3.6:", when="@21:", type=("build", "run")) - depends_on("python@2.7:2.8,3.5:", when="@19.2:", type=("build", "run")) - depends_on("python@2.7:2.8,3.4:", when="@18:", type=("build", "run")) - depends_on("python@2.7:2.8,3.3:", when="@10:", type=("build", "run")) - depends_on("python@2.6:2.8,3.3:", type=("build", "run")) def url_for_version(self, version): url = "https://files.pythonhosted.org/packages/{0}/p/pip/pip-{1}-{0}-none-any.whl" diff --git a/var/spack/repos/builtin/packages/py-protobuf/package.py b/var/spack/repos/builtin/packages/py-protobuf/package.py index 8141a606b7..9f688515cc 100644 --- a/var/spack/repos/builtin/packages/py-protobuf/package.py +++ b/var/spack/repos/builtin/packages/py-protobuf/package.py @@ -62,6 +62,8 @@ class PyProtobuf(PythonPackage): version("3.0.0", sha256="ecc40bc30f1183b418fe0ec0c90bc3b53fa1707c4205ee278c6b90479e5b6ff5") depends_on("py-setuptools", type=("build", "run")) + # in newer pip versions --install-option does not exist + depends_on("py-pip@:23.0", when="@:4.21", type=("build", "run")) depends_on("py-six@1.9:", when="@3.0:3.17", type=("build", "run")) # Setup dependencies for protobuf to use the same minor version as py-protobuf diff --git a/var/spack/repos/builtin/packages/py-pyarrow/package.py b/var/spack/repos/builtin/packages/py-pyarrow/package.py index c18ee07463..f153eef111 100644 --- a/var/spack/repos/builtin/packages/py-pyarrow/package.py +++ b/var/spack/repos/builtin/packages/py-pyarrow/package.py @@ -42,6 +42,9 @@ class PyPyarrow(PythonPackage, CudaPackage): depends_on("py-cython", type="build") depends_on("py-cython@0.29:", type="build", when="@0.15.0:") depends_on("py-cython@0.29.22:", type="build", when="@8.0.0:") + # in newer pip versions --install-option does not exist + depends_on("py-pip@:23.0", type="build") + depends_on("py-numpy@1.14:", type=("build", "run"), when="@0.15.0:") depends_on("py-numpy@1.16.6:", type=("build", "run"), when="@3.0.0:") diff --git a/var/spack/repos/builtin/packages/py-qiskit-aer/package.py b/var/spack/repos/builtin/packages/py-qiskit-aer/package.py index b6098b9c66..a3e38d6524 100644 --- a/var/spack/repos/builtin/packages/py-qiskit-aer/package.py +++ b/var/spack/repos/builtin/packages/py-qiskit-aer/package.py @@ -20,6 +20,8 @@ class PyQiskitAer(PythonPackage, CudaPackage): depends_on("python@3.6:", type=("build", "run"), when="@0.9.1") depends_on("python@3.7:", type=("build", "run"), when="@0.11.1") depends_on("py-setuptools@40.1.0:", type="build") + # in newer pip versions --install-option does not exist + depends_on("py-pip@:23.0", type="build") depends_on("py-numpy@1.16.3:", type=("build", "run")) depends_on("py-pybind11@2.6:", type="build") depends_on("py-qiskit-terra@0.17.0:", type=("build", "run")) diff --git a/var/spack/repos/builtin/packages/py-scs/package.py b/var/spack/repos/builtin/packages/py-scs/package.py index 776ef201d4..d0067c0218 100644 --- a/var/spack/repos/builtin/packages/py-scs/package.py +++ b/var/spack/repos/builtin/packages/py-scs/package.py @@ -31,6 +31,10 @@ class PyScs(PythonPackage, CudaPackage): depends_on("py-numpy@1.7:", type=("build", "run")) depends_on("py-scipy@0.13.2:", type=("build", "run")) + # in newer pip versions --install-option does not exist + # technically only the variants need this restriction + depends_on("py-pip@:23.0", type="build") + def install_options(self, spec, prefix): args = [] if ( diff --git a/var/spack/repos/builtin/packages/py-symengine/package.py b/var/spack/repos/builtin/packages/py-symengine/package.py index b867278cba..f6ba438669 100644 --- a/var/spack/repos/builtin/packages/py-symengine/package.py +++ b/var/spack/repos/builtin/packages/py-symengine/package.py @@ -32,6 +32,8 @@ class PySymengine(PythonPackage): depends_on("py-setuptools@:60", type="build", when="@:0.9.2") depends_on("py-cython@0.19.1:", type="build", when="@0.2.0") depends_on("py-cython@0.29.24:", type="build", when="@0.8.1:") + # in newer pip versions --install-option does not exist + depends_on("py-pip@:23.0", type="build") depends_on("cmake@2.8.12:", type="build") # see symengine_version.txt depends_on("symengine@0.2.0", when="@0.2.0") diff --git a/var/spack/repos/builtin/packages/py-xgboost/package.py b/var/spack/repos/builtin/packages/py-xgboost/package.py index bd48b5069c..94ba143490 100644 --- a/var/spack/repos/builtin/packages/py-xgboost/package.py +++ b/var/spack/repos/builtin/packages/py-xgboost/package.py @@ -36,6 +36,9 @@ class PyXgboost(PythonPackage): depends_on("python@3.7:", when="@1.6:", type=("build", "run")) depends_on("python@3.6:", type=("build", "run")) depends_on("py-setuptools", type=("build")) + # in newer pip versions --install-option does not exist + depends_on("py-pip@:23.0", type="build") + depends_on("py-numpy", type=("build", "run")) depends_on("py-scipy", type=("build", "run"))