diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2019-02-06 17:26:34 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-02-08 10:57:19 +0000 |
commit | e2c3247c233876ab090c9ce3d5325a6d46ab350f (patch) | |
tree | cf38957a3510be612cde924f6184a5251b968a43 /meta/recipes-devtools/python/python3/0001-Issue-21272-Use-_sysconfigdata.py-to-initialize-dist.patch | |
parent | cd6c61a26177296e24b442e2eda1514b5f931c0a (diff) | |
download | poky-e2c3247c233876ab090c9ce3d5325a6d46ab350f.tar.gz |
python3: upgrade to 3.7.2
I took the same approach as the recent perl upgrade: write recipe from scratch,
taking the pieces from the old recipe only when they were proven to be necessary.
The pgo, manifest and ptest features are all preserved.
New features:
- native and target recipes are now unified into one recipe
- check_build_completeness.py runs right after do_compile() and verifies that
all optional modules have been built (a notorious source of regressions)
- a new approach to sysconfig.py and distutils/sysconfig.py returning values
appropriate for native or target builds: we copy the configuration file to a
separate folder, add that folder to sys.path (through environment variable
that differs between native and target builds), and point python to the file
through another environment variable.
There were a few other patches where it was difficult to decide if the patch
is still relevant, and how to test that it works correctly; please add those
as-needed by testing the new python.
(From OE-Core rev: 02714c105426b0d687620913c1a7401b386428b6)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python3/0001-Issue-21272-Use-_sysconfigdata.py-to-initialize-dist.patch')
-rw-r--r-- | meta/recipes-devtools/python/python3/0001-Issue-21272-Use-_sysconfigdata.py-to-initialize-dist.patch | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/meta/recipes-devtools/python/python3/0001-Issue-21272-Use-_sysconfigdata.py-to-initialize-dist.patch b/meta/recipes-devtools/python/python3/0001-Issue-21272-Use-_sysconfigdata.py-to-initialize-dist.patch deleted file mode 100644 index d1c92e9eed..0000000000 --- a/meta/recipes-devtools/python/python3/0001-Issue-21272-Use-_sysconfigdata.py-to-initialize-dist.patch +++ /dev/null | |||
@@ -1,66 +0,0 @@ | |||
1 | From bcddbf40c7f1b80336268cdddacc17369fb0ccea Mon Sep 17 00:00:00 2001 | ||
2 | From: Libin Dang <libin.dang@windriver.com> | ||
3 | Date: Tue, 11 Apr 2017 14:12:15 +0800 | ||
4 | Subject: [PATCH] Issue #21272: Use _sysconfigdata.py to initialize | ||
5 | distutils.sysconfig | ||
6 | |||
7 | Backport upstream commit | ||
8 | https://github.com/python/cpython/commit/409482251b06fe75c4ee56e85ffbb4b23d934159 | ||
9 | |||
10 | Upstream-Status: Backport | ||
11 | |||
12 | Signed-off-by: Li Zhou <li.zhou@windriver.com> | ||
13 | --- | ||
14 | Lib/distutils/sysconfig.py | 35 ++++------------------------------- | ||
15 | 1 file changed, 4 insertions(+), 31 deletions(-) | ||
16 | |||
17 | diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py | ||
18 | index 6d5cfd0..9925d24 100644 | ||
19 | --- a/Lib/distutils/sysconfig.py | ||
20 | +++ b/Lib/distutils/sysconfig.py | ||
21 | @@ -424,38 +424,11 @@ _config_vars = None | ||
22 | |||
23 | def _init_posix(): | ||
24 | """Initialize the module as appropriate for POSIX systems.""" | ||
25 | - g = {} | ||
26 | - # load the installed Makefile: | ||
27 | - try: | ||
28 | - filename = get_makefile_filename() | ||
29 | - parse_makefile(filename, g) | ||
30 | - except OSError as msg: | ||
31 | - my_msg = "invalid Python installation: unable to open %s" % filename | ||
32 | - if hasattr(msg, "strerror"): | ||
33 | - my_msg = my_msg + " (%s)" % msg.strerror | ||
34 | - | ||
35 | - raise DistutilsPlatformError(my_msg) | ||
36 | - | ||
37 | - # load the installed pyconfig.h: | ||
38 | - try: | ||
39 | - filename = get_config_h_filename() | ||
40 | - with open(filename) as file: | ||
41 | - parse_config_h(file, g) | ||
42 | - except OSError as msg: | ||
43 | - my_msg = "invalid Python installation: unable to open %s" % filename | ||
44 | - if hasattr(msg, "strerror"): | ||
45 | - my_msg = my_msg + " (%s)" % msg.strerror | ||
46 | - | ||
47 | - raise DistutilsPlatformError(my_msg) | ||
48 | - | ||
49 | - # On AIX, there are wrong paths to the linker scripts in the Makefile | ||
50 | - # -- these paths are relative to the Python source, but when installed | ||
51 | - # the scripts are in another directory. | ||
52 | - if python_build: | ||
53 | - g['LDSHARED'] = g['BLDSHARED'] | ||
54 | - | ||
55 | + # _sysconfigdata is generated at build time, see the sysconfig module | ||
56 | + from _sysconfigdata import build_time_vars | ||
57 | global _config_vars | ||
58 | - _config_vars = g | ||
59 | + _config_vars = {} | ||
60 | + _config_vars.update(build_time_vars) | ||
61 | |||
62 | |||
63 | def _init_nt(): | ||
64 | -- | ||
65 | 1.8.3.1 | ||
66 | |||