1 Index: b/Lib/distutils/sysconfig.py
2 ===================================================================
3 --- a/Lib/distutils/sysconfig.py
4 +++ b/Lib/distutils/sysconfig.py
9 - """Initialize the module as appropriate for POSIX systems."""
11 - # load the installed Makefile:
13 - filename = get_makefile_filename()
14 - parse_makefile(filename, g)
15 - except OSError as msg:
16 - my_msg = "invalid Python installation: unable to open %s" % filename
17 - if hasattr(msg, "strerror"):
18 - my_msg = my_msg + " (%s)" % msg.strerror
20 - raise DistutilsPlatformError(my_msg)
22 - # load the installed pyconfig.h:
24 - filename = get_config_h_filename()
25 - with open(filename) as file:
26 - parse_config_h(file, g)
27 - except OSError as msg:
28 - my_msg = "invalid Python installation: unable to open %s" % filename
29 - if hasattr(msg, "strerror"):
30 - my_msg = my_msg + " (%s)" % msg.strerror
32 - raise DistutilsPlatformError(my_msg)
34 - # On AIX, there are wrong paths to the linker scripts in the Makefile
35 - # -- these paths are relative to the Python source, but when installed
36 - # the scripts are in another directory.
38 - g['LDSHARED'] = g['BLDSHARED']
40 + # _sysconfigdata is generated at build time, see the sysconfig module
41 + from _sysconfigdata import build_time_vars
46 + _config_vars.update(build_time_vars)
49 """Initialize the module as appropriate for NT"""