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/12-distutils-prefix-is-inside-staging-area.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/12-distutils-prefix-is-inside-staging-area.patch')
-rw-r--r-- | meta/recipes-devtools/python/python3/12-distutils-prefix-is-inside-staging-area.patch | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/meta/recipes-devtools/python/python3/12-distutils-prefix-is-inside-staging-area.patch b/meta/recipes-devtools/python/python3/12-distutils-prefix-is-inside-staging-area.patch index c53ec0cfc8..dcc0932c7f 100644 --- a/meta/recipes-devtools/python/python3/12-distutils-prefix-is-inside-staging-area.patch +++ b/meta/recipes-devtools/python/python3/12-distutils-prefix-is-inside-staging-area.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 7630ab22578746d3d790d0598c0d279cf7afed97 Mon Sep 17 00:00:00 2001 | 1 | From 1397979ee445ff6826aa5469511e003539f77bb2 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Tue, 14 May 2013 15:00:26 -0700 | 3 | Date: Tue, 14 May 2013 15:00:26 -0700 |
4 | Subject: [PATCH 01/20] python3: Add target and native recipes | 4 | Subject: [PATCH] python3: Add target and native recipes |
5 | 5 | ||
6 | Upstream-Status: Inappropriate [embedded specific] | 6 | Upstream-Status: Inappropriate [embedded specific] |
7 | 7 | ||
@@ -18,7 +18,7 @@ Upstream-Status: Inappropriate [embedded specific] | |||
18 | 1 file changed, 8 insertions(+), 2 deletions(-) | 18 | 1 file changed, 8 insertions(+), 2 deletions(-) |
19 | 19 | ||
20 | diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py | 20 | diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py |
21 | index 573724d..390c485 100644 | 21 | index 6b8c129..3ca7f79 100644 |
22 | --- a/Lib/distutils/sysconfig.py | 22 | --- a/Lib/distutils/sysconfig.py |
23 | +++ b/Lib/distutils/sysconfig.py | 23 | +++ b/Lib/distutils/sysconfig.py |
24 | @@ -84,7 +84,9 @@ def get_python_inc(plat_specific=0, prefix=None): | 24 | @@ -84,7 +84,9 @@ def get_python_inc(plat_specific=0, prefix=None): |
@@ -32,7 +32,7 @@ index 573724d..390c485 100644 | |||
32 | prefix = plat_specific and BASE_EXEC_PREFIX or BASE_PREFIX | 32 | prefix = plat_specific and BASE_EXEC_PREFIX or BASE_PREFIX |
33 | if os.name == "posix": | 33 | if os.name == "posix": |
34 | if python_build: | 34 | if python_build: |
35 | @@ -125,6 +127,10 @@ def get_python_lib(plat_specific=0, standard_lib=0, prefix=None): | 35 | @@ -122,6 +124,10 @@ def get_python_lib(plat_specific=0, standard_lib=0, prefix=None): |
36 | If 'prefix' is supplied, use it instead of sys.base_prefix or | 36 | If 'prefix' is supplied, use it instead of sys.base_prefix or |
37 | sys.base_exec_prefix -- i.e., ignore 'plat_specific'. | 37 | sys.base_exec_prefix -- i.e., ignore 'plat_specific'. |
38 | """ | 38 | """ |
@@ -43,7 +43,7 @@ index 573724d..390c485 100644 | |||
43 | if prefix is None: | 43 | if prefix is None: |
44 | if standard_lib: | 44 | if standard_lib: |
45 | prefix = plat_specific and BASE_EXEC_PREFIX or BASE_PREFIX | 45 | prefix = plat_specific and BASE_EXEC_PREFIX or BASE_PREFIX |
46 | @@ -133,7 +139,7 @@ def get_python_lib(plat_specific=0, standard_lib=0, prefix=None): | 46 | @@ -130,7 +136,7 @@ def get_python_lib(plat_specific=0, standard_lib=0, prefix=None): |
47 | 47 | ||
48 | if os.name == "posix": | 48 | if os.name == "posix": |
49 | libpython = os.path.join(prefix, | 49 | libpython = os.path.join(prefix, |
@@ -52,6 +52,3 @@ index 573724d..390c485 100644 | |||
52 | if standard_lib: | 52 | if standard_lib: |
53 | return libpython | 53 | return libpython |
54 | else: | 54 | else: |
55 | -- | ||
56 | 2.8.0.rc3 | ||
57 | |||