Skip to content

Commit 18fc8b2

Browse files
committed
MAINT: Remove outdated version checks.
Because Numpy 1.8.0 will no longer supports Python versions < 2.6 we no longer need to check for that and can also remove the code that is specific to those earlier versions. To make this a bit safer, the toplevel setup.py file now contains a check of the Python version number and raises an error when run by an unsupported version.
1 parent 553e3ce commit 18fc8b2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

setup.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
from __future__ import division, print_function
22

3+
import sys
34
import setuptools
45
from distutils.core import setup
56

6-
import sys
7-
if sys.version_info[0] >= 3 and sys.version_info[1] < 3 or \
8-
sys.version_info[0] <= 2 and sys.version_info[1] < 6:
7+
if sys.version_info[:2] < (2, 6) or (3, 0) <= sys.version_info[0:2] < (3, 3):
98
raise RuntimeError("Python version 2.6, 2.7 or >= 3.3 required.")
109

1110
version = "0.4.dev"

0 commit comments

Comments
 (0)