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.inc | |
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.inc')
-rw-r--r-- | meta/recipes-devtools/python/python3.inc | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/meta/recipes-devtools/python/python3.inc b/meta/recipes-devtools/python/python3.inc deleted file mode 100644 index f565b3f171..0000000000 --- a/meta/recipes-devtools/python/python3.inc +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | SUMMARY = "The Python Programming Language" | ||
2 | HOMEPAGE = "http://www.python.org" | ||
3 | LICENSE = "PSFv2" | ||
4 | SECTION = "devel/python" | ||
5 | |||
6 | # TODO Remove this when we upgrade | ||
7 | INC_PR = "r1" | ||
8 | PR = "${INC_PR}.0" | ||
9 | |||
10 | LIC_FILES_CHKSUM = "file://LICENSE;md5=b6ec515b22618f55fa07276b897bacea" | ||
11 | |||
12 | # TODO consolidate patch set | ||
13 | SRC_URI[md5sum] = "f5a99f765e765336a3ebbb2a24ca2be3" | ||
14 | SRC_URI[sha256sum] = "f55cde04f521f273c7cba08912921cc5642cfc15ca7b22d5829f0aff4371155f" | ||
15 | |||
16 | # exclude pre-releases for both python 2.x and 3.x | ||
17 | UPSTREAM_CHECK_REGEX = "[Pp]ython-(?P<pver>\d+(\.\d+)+).tar" | ||
18 | |||
19 | CVE_PRODUCT = "python" | ||
20 | |||
21 | PYTHON_MAJMIN = "3.5" | ||
22 | PYTHON_BINABI = "${PYTHON_MAJMIN}m" | ||
23 | |||
24 | S = "${WORKDIR}/Python-${PV}" | ||
25 | |||
26 | inherit autotools bluetooth pkgconfig | ||
27 | |||
28 | EXTRA_OECONF = "\ | ||
29 | --with-threads \ | ||
30 | --with-pymalloc \ | ||
31 | --without-cxx-main \ | ||
32 | --with-signal-module \ | ||
33 | --enable-shared \ | ||
34 | --enable-ipv6=${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'yes', 'no', d)} \ | ||
35 | " | ||
36 | |||
37 | PACKAGECONFIG[bluetooth] = ",ac_cv_header_bluetooth_bluetooth_h=no ac_cv_header_bluetooth_h=no,${BLUEZ}" | ||
38 | |||
39 | do_install_append () { | ||
40 | sed -i -e 's:${HOSTTOOLS_DIR}/install:install:g' \ | ||
41 | -e 's:${HOSTTOOLS_DIR}/mkdir:mkdir:g' \ | ||
42 | ${D}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py | ||
43 | } | ||