The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / python3 / 008-distutils-sysconfig-use-sysconfigdata.patch
1 Index: b/Lib/distutils/sysconfig.py
2 ===================================================================
3 --- a/Lib/distutils/sysconfig.py
4 +++ b/Lib/distutils/sysconfig.py
5 @@ -423,40 +423,11 @@
6  _config_vars = None
7  
8  def _init_posix():
9 -    """Initialize the module as appropriate for POSIX systems."""
10 -    g = {}
11 -    # load the installed Makefile:
12 -    try:
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
19 -
20 -        raise DistutilsPlatformError(my_msg)
21 -
22 -    # load the installed pyconfig.h:
23 -    try:
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
31 -
32 -        raise DistutilsPlatformError(my_msg)
33 -
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.
37 -    if python_build:
38 -        g['LDSHARED'] = g['BLDSHARED']
39 -
40 +    # _sysconfigdata is generated at build time, see the sysconfig module
41 +    from _sysconfigdata import build_time_vars
42      global _config_vars
43 -    _config_vars = g
44 -
45 +    _config_vars = {}
46 +    _config_vars.update(build_time_vars)
47  
48  def _init_nt():
49      """Initialize the module as appropriate for NT"""