Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "The Python Programming Language" |
| 2 | HOMEPAGE = "http://www.python.org" |
| 3 | LICENSE = "PSFv2" |
| 4 | SECTION = "devel/python" |
| 5 | # bump this on every change in contrib/python/generate-manifest-2.7.py |
| 6 | INC_PR = "r1" |
| 7 | |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e466242989bd33c1bd2b6a526a742498" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 9 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 10 | SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 11 | " |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 12 | |
Brad Bishop | 6dbb316 | 2019-11-25 09:41:34 -0500 | [diff] [blame] | 13 | SRC_URI[md5sum] = "b3b6d2c92f42a60667814358ab9f0cfd" |
| 14 | SRC_URI[sha256sum] = "4d43f033cdbd0aa7b7023c81b0e986fd11e653b5248dac9144d508f11812ba41" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 15 | |
| 16 | # python recipe is actually python 2.x |
| 17 | # also, exclude pre-releases for both python 2.x and 3.x |
| 18 | UPSTREAM_CHECK_REGEX = "[Pp]ython-(?P<pver>2(\.\d+)+).tar" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 19 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 20 | CVE_PRODUCT = "python" |
| 21 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 22 | PYTHON_MAJMIN = "2.7" |
| 23 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 24 | inherit autotools pkgconfig |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 25 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 26 | EXTRA_OECONF = "\ |
| 27 | --with-threads \ |
| 28 | --with-pymalloc \ |
| 29 | --without-cxx-main \ |
| 30 | --with-signal-module \ |
| 31 | --enable-shared \ |
| 32 | --enable-ipv6=${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'yes', 'no', d)} \ |
| 33 | ac_cv_header_bluetooth_bluetooth_h=no ac_cv_header_bluetooth_h=no \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 34 | " |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 35 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 36 | do_configure_prepend() { |
| 37 | libdirleaf="$(echo ${libdir} | sed -e 's:${prefix}/::')" |
| 38 | sed -i -e "s:SEDMELIBLEAF:${libdirleaf}:g" \ |
| 39 | ${S}/configure.ac |
| 40 | } |
| 41 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 42 | do_install_append () { |
| 43 | sed -i -e 's:${HOSTTOOLS_DIR}/install:install:g' \ |
| 44 | -e 's:${HOSTTOOLS_DIR}/mkdir:mkdir:g' \ |
| 45 | ${D}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py |
| 46 | } |