- Issue #23968: Update distutils/sysconfig.py to look for the renamed

_sysconfigdata module too.
This commit is contained in:
doko@ubuntu.com 2016-06-14 09:22:16 +02:00
parent c8fd1928d0
commit eea86b0bc0
1 changed files with 3 additions and 1 deletions

View File

@ -418,7 +418,9 @@ _config_vars = None
def _init_posix(): def _init_posix():
"""Initialize the module as appropriate for POSIX systems.""" """Initialize the module as appropriate for POSIX systems."""
# _sysconfigdata is generated at build time, see the sysconfig module # _sysconfigdata is generated at build time, see the sysconfig module
from _sysconfigdata import build_time_vars name = '_sysconfigdata_' + sys.abiflags
_temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
build_time_vars = _temp.build_time_vars
global _config_vars global _config_vars
_config_vars = {} _config_vars = {}
_config_vars.update(build_time_vars) _config_vars.update(build_time_vars)