summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2013-11-22 16:08:05 (GMT)
committerBarry Warsaw <barry@python.org>2013-11-22 16:08:05 (GMT)
commit87b9637a86876f86302a659da3b2e52a5cae5314 (patch)
treede27b61262d6cc4dd166715f37f80577ba349fd3 /Lib
parent8fbdb097cfc6a838a6a447e4a6c7ad497c392ad6 (diff)
downloadcpython-87b9637a86876f86302a659da3b2e52a5cae5314.zip
cpython-87b9637a86876f86302a659da3b2e52a5cae5314.tar.gz
cpython-87b9637a86876f86302a659da3b2e52a5cae5314.tar.bz2
A fix for issue 19555 on Windows.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/sysconfig.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py
index c4f7cab..ffa772e 100644
--- a/Lib/sysconfig.py
+++ b/Lib/sysconfig.py
@@ -409,10 +409,6 @@ def _init_posix(vars):
# _sysconfigdata is generated at build time, see _generate_posix_vars()
from _sysconfigdata import build_time_vars
vars.update(build_time_vars)
- # For backward compatibility, see issue19555
- SO = build_time_vars.get('EXT_SUFFIX')
- if SO is not None:
- vars['SO'] = SO
def _init_non_posix(vars):
"""Initialize the module as appropriate for NT"""
@@ -540,6 +536,10 @@ def get_config_vars(*args):
_init_non_posix(_CONFIG_VARS)
if os.name == 'posix':
_init_posix(_CONFIG_VARS)
+ # For backward compatibility, see issue19555
+ SO = _CONFIG_VARS.get('EXT_SUFFIX')
+ if SO is not None:
+ _CONFIG_VARS['SO'] = SO
# Setting 'userbase' is done below the call to the
# init function to enable using 'get_config_var' in
# the init-function.