diff options
| author | Barry Warsaw <barry@python.org> | 2013-11-22 11:08:25 -0500 |
|---|---|---|
| committer | Barry Warsaw <barry@python.org> | 2013-11-22 11:08:25 -0500 |
| commit | 0eb3b892665fe6e1e56c7cca4a14ffda78717d0c (patch) | |
| tree | 5f6110d872eeaf1d00133254da3c2c62246fb695 | |
| parent | c32f533aa00d4635b9ab44092b04dbed0a761b32 (diff) | |
| parent | e6ea2494cc3160965106e863dfdcc7c5590d1666 (diff) | |
| download | cpython-0eb3b892665fe6e1e56c7cca4a14ffda78717d0c.tar.gz | |
Trunk merge.
| -rw-r--r-- | Lib/sysconfig.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py index c4f7cab174..ffa772ea00 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. |
