diff options
| author | Ralf Gommers <ralf.gommers@gmail.com> | 2022-01-07 08:12:25 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-07 08:12:25 +0100 |
| commit | f4a3e07877eb258f69a7d65d8a3b7e8d96e1aacd (patch) | |
| tree | 70ac9356ee5c87ccbb1fcb3deacbd09ad0de395e | |
| parent | d90b4c48c2ae869559270dcad56e37f6d9af39dc (diff) | |
| parent | c62e1dbc1c038606d2466f0816611b593f19a56d (diff) | |
| download | numpy-f4a3e07877eb258f69a7d65d8a3b7e8d96e1aacd.tar.gz | |
Merge pull request #20759 from charris/fix-20692
MAINT: Raise RuntimeError if setuptools version is too recent.
| -rwxr-xr-x | setup.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |
