cpython: 331b7a8bb830 (original) (raw)
Mercurial > cpython
changeset 87345:331b7a8bb830
A fix for issue 19555 on Windows. [#19555]
Barry Warsaw barry@python.org | |
---|---|
date | Fri, 22 Nov 2013 11:08:05 -0500 |
parents | 57fbab22ab4e |
children | 364b29d1c79d |
files | Lib/sysconfig.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-)[+] [-] Lib/sysconfig.py 8 |
line wrap: on
line diff
--- 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[](#l1.10)
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[](#l1.18)
SO = _CONFIG_VARS.get('EXT_SUFFIX')[](#l1.19)
if SO is not None:[](#l1.20)
_CONFIG_VARS['SO'] = SO[](#l1.21) # Setting 'userbase' is done below the call to the[](#l1.22) # init function to enable using 'get_config_var' in[](#l1.23) # the init-function.[](#l1.24)