summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@gmail.com>2022-01-07 08:12:25 +0100
committerGitHub <noreply@github.com>2022-01-07 08:12:25 +0100
commitf4a3e07877eb258f69a7d65d8a3b7e8d96e1aacd (patch)
tree70ac9356ee5c87ccbb1fcb3deacbd09ad0de395e
parentd90b4c48c2ae869559270dcad56e37f6d9af39dc (diff)
parentc62e1dbc1c038606d2466f0816611b593f19a56d (diff)
downloadnumpy-f4a3e07877eb258f69a7d65d8a3b7e8d96e1aacd.tar.gz
Merge pull request #20759 from charris/fix-20692
MAINT: Raise RuntimeError if setuptools version is too recent.
-rwxr-xr-xsetup.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 6e62b0f65..bfb40acf1 100755
--- a/setup.py
+++ b/setup.py
@@ -85,6 +85,10 @@ if os.path.exists('MANIFEST'):
# so that it is in sys.modules
import numpy.distutils.command.sdist
import setuptools
+if int(setuptools.__version__.split('.')[0]) >= 60:
+ raise RuntimeError(
+ "Setuptools version is '{}', version < '60.0.0' is required. "
+ "See pyproject.toml".format(setuptools.__version__))
# Initialize cmdclass from versioneer
from numpy.distutils.core import numpy_cmdclass