| SUMMARY = "The Python Programming Language" |
| HOMEPAGE = "http://www.python.org" |
| LICENSE = "PSFv2" |
| SECTION = "devel/python" |
| # bump this on every change in contrib/python/generate-manifest-2.7.py |
| INC_PR = "r1" |
| |
| LIC_FILES_CHKSUM = "file://LICENSE;md5=f741e51de91d4eeea5930b9c3c7fa69d" |
| |
| SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.xz" |
| |
| SRC_URI[md5sum] = "1f6db41ad91d9eb0a6f0c769b8613c5b" |
| SRC_URI[sha256sum] = "71ffb26e09e78650e424929b2b457b9c912ac216576e6bd9e7d204ed03296a66" |
| |
| # python recipe is actually python 2.x |
| # also, exclude pre-releases for both python 2.x and 3.x |
| UPSTREAM_CHECK_REGEX = "[Pp]ython-(?P<pver>2(\.\d+)+).tar" |
| |
| CVE_PRODUCT = "python" |
| |
| PYTHON_MAJMIN = "2.7" |
| |
| inherit autotools pkgconfig |
| |
| EXTRA_OECONF = "\ |
| --with-threads \ |
| --with-pymalloc \ |
| --without-cxx-main \ |
| --with-signal-module \ |
| --enable-shared \ |
| --enable-ipv6=${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'yes', 'no', d)} \ |
| ac_cv_header_bluetooth_bluetooth_h=no ac_cv_header_bluetooth_h=no \ |
| ${PYTHONLSBOPTS} \ |
| " |
| |
| do_install_append () { |
| sed -i -e 's:${HOSTTOOLS_DIR}/install:install:g' \ |
| -e 's:${HOSTTOOLS_DIR}/mkdir:mkdir:g' \ |
| ${D}/${libdir}/python${PYTHON_MAJMIN}/_sysconfigdata.py |
| } |