From eea86b0bc0bbec2bd9bdacf2a3f174af7e170942 Mon Sep 17 00:00:00 2001 From: "doko@ubuntu.com" Date: Tue, 14 Jun 2016 09:22:16 +0200 Subject: [PATCH] - Issue #23968: Update distutils/sysconfig.py to look for the renamed _sysconfigdata module too. --- Lib/distutils/sysconfig.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py index e9cc4a95d4d..f72b7f5a198 100644 --- a/Lib/distutils/sysconfig.py +++ b/Lib/distutils/sysconfig.py @@ -418,7 +418,9 @@ _config_vars = None def _init_posix(): """Initialize the module as appropriate for POSIX systems.""" # _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 _config_vars = {} _config_vars.update(build_time_vars)