[Python-checkins] cpython: A fix for issue 19555 on Windows.
barry.warsaw
python-checkins at python.org
Fri Nov 22 17:08:39 CET 2013
http://hg.python.org/cpython/rev/331b7a8bb830
changeset: 87345:331b7a8bb830
parent: 87341:57fbab22ab4e
user: Barry Warsaw <barry at python.org>
date: Fri Nov 22 11:08:05 2013 -0500
summary:
A fix for issue 19555 on Windows.
files:
Lib/sysconfig.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py
--- a/Lib/sysconfig.py
+++ b/Lib/sysconfig.py
@@ -409,10 +409,6 @@
# _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 @@
_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.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list