summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python3.inc
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2018-09-11 12:52:38 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-09-13 07:42:28 +0100
commit53535f67aef011f0fe8365ef99ca01b8b00e4b9e (patch)
tree50bb225f08d286e4122839a14394dd4eef3e0dc4 /meta/recipes-devtools/python/python3.inc
parent3c32b1525ad5ce3ec82542846369547efc62f25a (diff)
downloadpoky-53535f67aef011f0fe8365ef99ca01b8b00e4b9e.tar.gz
python3: split common assignments into a dedicated python3.inc
Instead of including the Py2 python.inc and having to undo some of the assignments, create a new python3.inc to hold the common configuration. Over time we can move more from the recipes into this file to unify the target and native recipes. (From OE-Core rev: fc4767113adbdfbf4aeaaf6dd8605e7fd4bbaa46) Signed-off-by: Ross Burton <ross.burton@intel.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.inc42
1 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-devtools/python/python3.inc b/meta/recipes-devtools/python/python3.inc
new file mode 100644
index 0000000000..3207f91ab8
--- /dev/null
+++ b/meta/recipes-devtools/python/python3.inc
@@ -0,0 +1,42 @@
1SUMMARY = "The Python Programming Language"
2HOMEPAGE = "http://www.python.org"
3LICENSE = "PSFv2"
4SECTION = "devel/python"
5
6# TODO Remove this when we upgrade
7INC_PR = "r1"
8PR = "${INC_PR}.0"
9
10LIC_FILES_CHKSUM = "file://LICENSE;md5=b6ec515b22618f55fa07276b897bacea"
11
12# TODO consolidate patch set
13SRC_URI[md5sum] = "f5a99f765e765336a3ebbb2a24ca2be3"
14SRC_URI[sha256sum] = "f55cde04f521f273c7cba08912921cc5642cfc15ca7b22d5829f0aff4371155f"
15
16# exclude pre-releases for both python 2.x and 3.x
17UPSTREAM_CHECK_REGEX = "[Pp]ython-(?P<pver>\d+(\.\d+)+).tar"
18
19CVE_PRODUCT = "python"
20
21PYTHON_MAJMIN = "3.5"
22PYTHON_BINABI = "${PYTHON_MAJMIN}m"
23
24S = "${WORKDIR}/Python-${PV}"
25
26inherit autotools pkgconfig
27
28EXTRA_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 ac_cv_header_bluetooth_bluetooth_h=no ac_cv_header_bluetooth_h=no \
36"
37
38do_install_append () {
39 sed -i -e 's:${HOSTTOOLS_DIR}/install:install:g' \
40 -e 's:${HOSTTOOLS_DIR}/mkdir:mkdir:g' \
41 ${D}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py
42}