From 28eadc0e31ca7aea5c679023d1e703856f45c879 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Thu, 11 Jul 2013 12:08:49 -0600 Subject: 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. --- doc/sphinxext/setup.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'doc/sphinxext') diff --git a/doc/sphinxext/setup.py b/doc/sphinxext/setup.py index 5b3454b3a..6ec810c89 100644 --- a/doc/sphinxext/setup.py +++ b/doc/sphinxext/setup.py @@ -1,11 +1,10 @@ from __future__ import division, print_function +import sys import setuptools from distutils.core import setup -import sys -if sys.version_info[0] >= 3 and sys.version_info[1] < 3 or \ - sys.version_info[0] <= 2 and sys.version_info[1] < 6: +if sys.version_info[:2] < (2, 6) or (3, 0) <= sys.version_info[0:2] < (3, 3): raise RuntimeError("Python version 2.6, 2.7 or >= 3.3 required.") version = "0.4.dev" -- cgit v1.2.1