Commit 0c56bb97 authored by Benjamin Peterson's avatar Benjamin Peterson

remove 2.2 and 2.6 compat code (closes #22200)

Patch from Thomas Kluyver.
parent d9e95288
...@@ -15,32 +15,17 @@ from distutils.util import convert_path, subst_vars, change_root ...@@ -15,32 +15,17 @@ from distutils.util import convert_path, subst_vars, change_root
from distutils.util import get_platform from distutils.util import get_platform
from distutils.errors import DistutilsOptionError from distutils.errors import DistutilsOptionError
# this keeps compatibility from 2.3 to 2.5 from site import USER_BASE
if sys.version < "2.6": from site import USER_SITE
USER_BASE = None HAS_USER_SITE = True
USER_SITE = None
HAS_USER_SITE = False WINDOWS_SCHEME = {
else: 'purelib': '$base/Lib/site-packages',
from site import USER_BASE 'platlib': '$base/Lib/site-packages',
from site import USER_SITE 'headers': '$base/Include/$dist_name',
HAS_USER_SITE = True 'scripts': '$base/Scripts',
'data' : '$base',
if sys.version < "2.2": }
WINDOWS_SCHEME = {
'purelib': '$base',
'platlib': '$base',
'headers': '$base/Include/$dist_name',
'scripts': '$base/Scripts',
'data' : '$base',
}
else:
WINDOWS_SCHEME = {
'purelib': '$base/Lib/site-packages',
'platlib': '$base/Lib/site-packages',
'headers': '$base/Include/$dist_name',
'scripts': '$base/Scripts',
'data' : '$base',
}
INSTALL_SCHEMES = { INSTALL_SCHEMES = {
'unix_prefix': { 'unix_prefix': {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment