summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@gmail.com>2017-04-16 09:29:55 +1200
committerRalf Gommers <ralf.gommers@gmail.com>2017-04-16 09:29:55 +1200
commit343de6f2193204d686f1e16953797d1c0f4b62bc (patch)
tree38e8a78642b7210e93568d46cc2808e08f0af6ce /setup.py
parent6c91e9ee0d9e9fc16e504780ccf7ede26d1114c8 (diff)
downloadnumpy-343de6f2193204d686f1e16953797d1c0f4b62bc.tar.gz
REL: add `python_requires` to setup.py
This allows pip to figure out the last compatible version with a particular Python version before attempting to install. Support for this field was added to setuptools last year: https://github.com/pypa/setuptools/pull/631
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 07a17efd6..ed8b457bf 100755
--- a/setup.py
+++ b/setup.py
@@ -357,6 +357,7 @@ def setup_package():
platforms = ["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"],
test_suite='nose.collector',
cmdclass={"sdist": sdist_checked},
+ python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
)
if "--force" in sys.argv: