]> granicus.if.org Git - python/commitdiff
A fix for issue 19555 on Windows.
authorBarry Warsaw <barry@python.org>
Fri, 22 Nov 2013 16:08:05 +0000 (11:08 -0500)
committerBarry Warsaw <barry@python.org>
Fri, 22 Nov 2013 16:08:05 +0000 (11:08 -0500)
Lib/sysconfig.py

index c4f7cab174300c46818946154d87d6f006f22cbd..ffa772ea000a5777374b1997d9fb46c421799945 100644 (file)
@@ -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.