summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/sysconfig.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2013-11-22 20:31:35 (GMT)
committerBarry Warsaw <barry@python.org>2013-11-22 20:31:35 (GMT)
commit9121f8d94b178bd65d7adfa621028a1bcb579818 (patch)
treef510ce598b470e6e7b7ba94a0702937c0c335e59 /Lib/distutils/sysconfig.py
parentaa407758176affde0c81301e3c8856dd73e6b1c3 (diff)
downloadcpython-9121f8d94b178bd65d7adfa621028a1bcb579818.zip
cpython-9121f8d94b178bd65d7adfa621028a1bcb579818.tar.gz
cpython-9121f8d94b178bd65d7adfa621028a1bcb579818.tar.bz2
Issue 19555 for distutils, plus a little clean up (pyflakes, line lengths).
Diffstat (limited to 'Lib/distutils/sysconfig.py')
-rw-r--r--Lib/distutils/sysconfig.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py
index d9c9d65..392d63d 100644
--- a/Lib/distutils/sysconfig.py
+++ b/Lib/distutils/sysconfig.py
@@ -518,6 +518,11 @@ def get_config_vars(*args):
_config_vars['prefix'] = PREFIX
_config_vars['exec_prefix'] = EXEC_PREFIX
+ # For backward compatibility, see issue19555
+ SO = _config_vars.get('EXT_SUFFIX')
+ if SO is not None:
+ _config_vars['SO'] = SO
+
# Always convert srcdir to an absolute path
srcdir = _config_vars.get('srcdir', project_base)
if os.name == 'posix':
@@ -568,4 +573,7 @@ def get_config_var(name):
returned by 'get_config_vars()'. Equivalent to
get_config_vars().get(name)
"""
+ if name == 'SO':
+ import warnings
+ warnings.warn('SO is deprecated, use EXT_SUFFIX', DeprecationWarning)
return get_config_vars().get(name)