blob: 6726e06beff1159403ba32624983cad63eddbbd0 [file] [log] [blame]
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05001SUMMARY = "Download, build, install, upgrade, and uninstall Python packages"
2HOMEPAGE = "https://pypi.python.org/pypi/setuptools"
3SECTION = "devel/python"
Patrick Williamsc0f7c042017-02-23 20:41:17 -06004LICENSE = "MIT"
Brad Bishopd7bf8c12018-02-25 22:55:05 -05005LIC_FILES_CHKSUM = "file://LICENSE;beginline=1;endline=19;md5=9a33897f1bca1160d7aad3835152e158"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05006
Brad Bishop316dfdd2018-06-25 12:45:53 -04007PYPI_PACKAGE_EXT = "zip"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05008
Brad Bishop316dfdd2018-06-25 12:45:53 -04009inherit pypi
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050010
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080011SRC_URI_append_class-native = " file://0001-conditionally-do-not-fetch-code-by-easy_install.patch"
12
Andrew Geissler82c905d2020-04-13 13:39:40 -050013SRC_URI += "file://0001-change-shebang-to-python3.patch"
14
15SRC_URI[md5sum] = "0c956eea142af9c2b02d72e3c042af30"
16SRC_URI[sha256sum] = "89c6e6011ec2f6d57d43a3f9296c4ef022c2cbf49bab26b407fe67992ae3397f"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050017
Brad Bishop316dfdd2018-06-25 12:45:53 -040018DEPENDS += "${PYTHON_PN}"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050019
Brad Bishop316dfdd2018-06-25 12:45:53 -040020RDEPENDS_${PN} = "\
21 ${PYTHON_PN}-compile \
22 ${PYTHON_PN}-compression \
23 ${PYTHON_PN}-ctypes \
24 ${PYTHON_PN}-distutils \
25 ${PYTHON_PN}-email \
26 ${PYTHON_PN}-html \
Andrew Geisslerc182c622020-05-15 14:13:32 -050027 ${PYTHON_PN}-json \
Brad Bishop316dfdd2018-06-25 12:45:53 -040028 ${PYTHON_PN}-netserver \
29 ${PYTHON_PN}-numbers \
30 ${PYTHON_PN}-pkgutil \
31 ${PYTHON_PN}-plistlib \
32 ${PYTHON_PN}-shell \
33 ${PYTHON_PN}-stringold \
34 ${PYTHON_PN}-threading \
35 ${PYTHON_PN}-unittest \
36 ${PYTHON_PN}-xml \
37"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050038do_install_prepend() {
Patrick Williamsc0f7c042017-02-23 20:41:17 -060039 install -d ${D}${PYTHON_SITEPACKAGES_DIR}
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050040}
Brad Bishop316dfdd2018-06-25 12:45:53 -040041
42BBCLASSEXTEND = "native nativesdk"
Brad Bishop15ae2502019-06-18 21:44:24 -040043
44# The pkg-resources module can be used by itself, without the package downloader
45# and easy_install. Ship it in a separate package so that it can be used by
46# minimal distributions.
47PACKAGES =+ "${PYTHON_PN}-pkg-resources "
48FILES_${PYTHON_PN}-pkg-resources = "${PYTHON_SITEPACKAGES_DIR}/pkg_resources/*"
49# Due to the way OE-Core implemented native recipes, the native class cannot
50# have a dependency on something that is not a recipe name. Work around that by
51# manually setting RPROVIDES.
52RDEPENDS_${PN}_append = " ${PYTHON_PN}-pkg-resources"
53RPROVIDES_append_class-native = " ${PYTHON_PN}-pkg-resources-native"