From 62d00f958ef847f99f5fc925c2e63da1102f32e1 Mon Sep 17 00:00:00 2001 From: Arun Kannawadi Date: Wed, 31 Jul 2024 13:46:42 -0400 Subject: [PATCH] Pin setuptools < 72 --- conda_requirements.txt | 2 +- requirements.txt | 2 +- setup.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/conda_requirements.txt b/conda_requirements.txt index 5e87ca011e7..660a6c9f935 100644 --- a/conda_requirements.txt +++ b/conda_requirements.txt @@ -1,6 +1,6 @@ # The requirements packages that can be installed with # conda install -y -c conda-forge --file conda_requirements.txt -setuptools>=38 +setuptools>=38<72 numpy>=1.17 astropy>=2.0 pybind11>=2.2 diff --git a/requirements.txt b/requirements.txt index cc9a22fe013..ab8038d7811 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,7 +4,7 @@ # These are in conda_requirements.txt. If using that, you may prefer to do # conda install -c conda-forge --file conda_requirements.txt # prior to running pip install -r requirements.txt -setuptools>=38 +setuptools>=38<72 numpy>=1.17 astropy>=2.0 pybind11>=2.2 diff --git a/setup.py b/setup.py index 368ede98bde..41ab140fca7 100644 --- a/setup.py +++ b/setup.py @@ -40,7 +40,7 @@ except ImportError: print() print("****") - print(" Installation requires setuptools version >= 38.") + print(" Installation requires setuptools version >= 38 < 72.") print(" Please upgrade or install with pip install -U setuptools") print("****") print() @@ -1341,7 +1341,7 @@ def run_tests(self): undef_macros = undef_macros, extra_link_args = ["-lfftw3"]) -build_dep = ['setuptools>=38', 'pybind11>=2.2', 'numpy>=1.17'] +build_dep = ['setuptools>=38<72', 'pybind11>=2.2', 'numpy>=1.17'] run_dep = ['astropy', 'LSSTDESC.Coord'] test_dep = ['pytest', 'pytest-xdist', 'pytest-timeout', 'nose', 'scipy', 'pyyaml'] # Note: Even though we don't use nosetests, nose is required for some tests to work.