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 | 6f8dcde | 2018-10-16 10:47:12 +0800 | [diff] [blame] | 8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=f257cc14f81685691652a3d3e1b5d754" |
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 \ |
| 11 | file://0001-bpo-33570-TLS-1.3-ciphers-for-OpenSSL-1.1.1-GH-6976-.patch \ |
| 12 | file://0002-bpo-34818-Add-missing-closing-wrapper-in-test_tls1_3.patch \ |
| 13 | file://0003-bpo-34834-Fix-test_ssl.test_options-to-account-for-O.patch \ |
| 14 | file://0004-bpo-34836-fix-test_default_ecdh_curve-needs-no-tlsv1.patch \ |
| 15 | file://0001-bpo-33354-Fix-test_ssl-when-a-filename-cannot-be-enc.patch \ |
| 16 | " |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 17 | |
Brad Bishop | 6f8dcde | 2018-10-16 10:47:12 +0800 | [diff] [blame] | 18 | SRC_URI[md5sum] = "a80ae3cc478460b922242f43a1b4094d" |
| 19 | SRC_URI[sha256sum] = "22d9b1ac5b26135ad2b8c2901a9413537e08749a753356ee913c84dbd2df5574" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 20 | |
| 21 | # python recipe is actually python 2.x |
| 22 | # also, exclude pre-releases for both python 2.x and 3.x |
| 23 | UPSTREAM_CHECK_REGEX = "[Pp]ython-(?P<pver>2(\.\d+)+).tar" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 24 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 25 | CVE_PRODUCT = "python" |
| 26 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 27 | PYTHON_MAJMIN = "2.7" |
| 28 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 29 | inherit autotools pkgconfig |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 30 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 31 | EXTRA_OECONF = "\ |
| 32 | --with-threads \ |
| 33 | --with-pymalloc \ |
| 34 | --without-cxx-main \ |
| 35 | --with-signal-module \ |
| 36 | --enable-shared \ |
| 37 | --enable-ipv6=${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'yes', 'no', d)} \ |
| 38 | ac_cv_header_bluetooth_bluetooth_h=no ac_cv_header_bluetooth_h=no \ |
| 39 | ${PYTHONLSBOPTS} \ |
| 40 | " |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 41 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 42 | do_configure_prepend() { |
| 43 | libdirleaf="$(echo ${libdir} | sed -e 's:${prefix}/::')" |
| 44 | sed -i -e "s:SEDMELIBLEAF:${libdirleaf}:g" \ |
| 45 | ${S}/configure.ac |
| 46 | } |
| 47 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 48 | do_install_append () { |
| 49 | sed -i -e 's:${HOSTTOOLS_DIR}/install:install:g' \ |
| 50 | -e 's:${HOSTTOOLS_DIR}/mkdir:mkdir:g' \ |
| 51 | ${D}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py |
| 52 | } |