blob: 062a20f68e0882def5afc9f85d9e03feed8e3194 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "The Python Programming Language"
2HOMEPAGE = "http://www.python.org"
3LICENSE = "PSFv2"
4SECTION = "devel/python"
5# bump this on every change in contrib/python/generate-manifest-2.7.py
6INC_PR = "r1"
7
Brad Bishop6f8dcde2018-10-16 10:47:12 +08008LIC_FILES_CHKSUM = "file://LICENSE;md5=f257cc14f81685691652a3d3e1b5d754"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05009
Brad Bishop6f8dcde2018-10-16 10:47:12 +080010SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050011
Brad Bishop6f8dcde2018-10-16 10:47:12 +080012SRC_URI[md5sum] = "a80ae3cc478460b922242f43a1b4094d"
13SRC_URI[sha256sum] = "22d9b1ac5b26135ad2b8c2901a9413537e08749a753356ee913c84dbd2df5574"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050014
15# python recipe is actually python 2.x
16# also, exclude pre-releases for both python 2.x and 3.x
17UPSTREAM_CHECK_REGEX = "[Pp]ython-(?P<pver>2(\.\d+)+).tar"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050018
Brad Bishop6e60e8b2018-02-01 10:27:11 -050019CVE_PRODUCT = "python"
20
Patrick Williamsc124f4f2015-09-15 14:41:29 -050021PYTHON_MAJMIN = "2.7"
22
Brad Bishop6e60e8b2018-02-01 10:27:11 -050023inherit autotools pkgconfig
Patrick Williamsc124f4f2015-09-15 14:41:29 -050024
Patrick Williamsc124f4f2015-09-15 14:41:29 -050025EXTRA_OECONF = "\
26 --with-threads \
27 --with-pymalloc \
28 --without-cxx-main \
29 --with-signal-module \
30 --enable-shared \
31 --enable-ipv6=${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'yes', 'no', d)} \
32 ac_cv_header_bluetooth_bluetooth_h=no ac_cv_header_bluetooth_h=no \
33 ${PYTHONLSBOPTS} \
34"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050035
36do_install_append () {
37 sed -i -e 's:${HOSTTOOLS_DIR}/install:install:g' \
38 -e 's:${HOSTTOOLS_DIR}/mkdir:mkdir:g' \
39 ${D}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py
40}