Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 87b9637

Browse files
committed
A fix for issue 19555 on Windows.
1 parent 8fbdb09 commit 87b9637

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Lib/sysconfig.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -409,10 +409,6 @@ def _init_posix(vars):
409409
# _sysconfigdata is generated at build time, see _generate_posix_vars()
410410
from _sysconfigdata import build_time_vars
411411
vars.update(build_time_vars)
412-
# For backward compatibility, see issue19555
413-
SO = build_time_vars.get('EXT_SUFFIX')
414-
if SO is not None:
415-
vars['SO'] = SO
416412

417413
def _init_non_posix(vars):
418414
"""Initialize the module as appropriate for NT"""
@@ -540,6 +536,10 @@ def get_config_vars(*args):
540536
_init_non_posix(_CONFIG_VARS)
541537
if os.name == 'posix':
542538
_init_posix(_CONFIG_VARS)
539+
# For backward compatibility, see issue19555
540+
SO = _CONFIG_VARS.get('EXT_SUFFIX')
541+
if SO is not None:
542+
_CONFIG_VARS['SO'] = SO
543543
# Setting 'userbase' is done below the call to the
544544
# init function to enable using 'get_config_var' in
545545
# the init-function.

0 commit comments

Comments
 (0)