summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-09-06 21:24:12 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-09-06 21:24:12 (GMT)
commitdf0eb95b571321e6d47057f34b3afc3894476d3f (patch)
treed77adfa243ccfc504670bd0652e4fcbfcd2fc22b /Lib/distutils/command
parent8f0a1d0f285536c9262d30b20f5f1becfe103309 (diff)
downloadcpython-df0eb95b571321e6d47057f34b3afc3894476d3f.zip
cpython-df0eb95b571321e6d47057f34b3afc3894476d3f.tar.gz
cpython-df0eb95b571321e6d47057f34b3afc3894476d3f.tar.bz2
remove various dead version checks (closes #22349)
Patch from Thomas Kluyver.
Diffstat (limited to 'Lib/distutils/command')
-rw-r--r--Lib/distutils/command/build_ext.py17
1 files changed, 4 insertions, 13 deletions
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py
index 80689b6..3ab2d04 100644
--- a/Lib/distutils/command/build_ext.py
+++ b/Lib/distutils/command/build_ext.py
@@ -14,13 +14,7 @@ from distutils.extension import Extension
from distutils.util import get_platform
from distutils import log
-# this keeps compatibility from 2.3 to 2.5
-if sys.version < "2.6":
- USER_BASE = None
- HAS_USER_SITE = False
-else:
- from site import USER_BASE
- HAS_USER_SITE = True
+from site import USER_BASE
if os.name == 'nt':
from distutils.msvccompiler import get_build_version
@@ -97,14 +91,11 @@ class build_ext(Command):
"list of SWIG command line options"),
('swig=', None,
"path to the SWIG executable"),
+ ('user', None,
+ "add user include, library and rpath")
]
- boolean_options = ['inplace', 'debug', 'force', 'swig-cpp']
-
- if HAS_USER_SITE:
- user_options.append(('user', None,
- "add user include, library and rpath"))
- boolean_options.append('user')
+ boolean_options = ['inplace', 'debug', 'force', 'swig-cpp', 'user']
help_options = [
('help-compiler', None,