blob: 3222de707970b5f01fc064d0b4b95541c9e4b74e [file] [log] [blame]
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05001SUMMARY = "Download, build, install, upgrade, and uninstall Python packages"
Andrew Geisslerd25ed322020-06-27 00:28:28 -05002HOMEPAGE = "https://pypi.org/project/setuptools"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05003SECTION = "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 Geisslerd25ed322020-06-27 00:28:28 -050013SRC_URI += "file://0001-change-shebang-to-python3.patch \
14 file://0001-ScriptWriter-create-more-efficient-usr-bin-wrappers-signoff-included.patch \
15 "
Andrew Geissler82c905d2020-04-13 13:39:40 -050016
Andrew Geissler4ed12e12020-06-05 18:00:41 -050017SRC_URI[md5sum] = "6e9de90b242fdd60ef59f497424ce13a"
18SRC_URI[sha256sum] = "145fa62b9d7bb544fce16e9b5a9bf4ab2032d2f758b7cd674af09a92736aff74"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050019
Brad Bishop316dfdd2018-06-25 12:45:53 -040020DEPENDS += "${PYTHON_PN}"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050021
Brad Bishop316dfdd2018-06-25 12:45:53 -040022RDEPENDS_${PN} = "\
Andrew Geissler1e34c2d2020-05-29 16:02:59 -050023 ${PYTHON_PN}-2to3 \
Brad Bishop316dfdd2018-06-25 12:45:53 -040024 ${PYTHON_PN}-compile \
25 ${PYTHON_PN}-compression \
26 ${PYTHON_PN}-ctypes \
27 ${PYTHON_PN}-distutils \
28 ${PYTHON_PN}-email \
29 ${PYTHON_PN}-html \
Andrew Geisslerc182c622020-05-15 14:13:32 -050030 ${PYTHON_PN}-json \
Brad Bishop316dfdd2018-06-25 12:45:53 -040031 ${PYTHON_PN}-netserver \
32 ${PYTHON_PN}-numbers \
Andrew Geissler1e34c2d2020-05-29 16:02:59 -050033 ${PYTHON_PN}-pickle \
Brad Bishop316dfdd2018-06-25 12:45:53 -040034 ${PYTHON_PN}-pkgutil \
35 ${PYTHON_PN}-plistlib \
36 ${PYTHON_PN}-shell \
37 ${PYTHON_PN}-stringold \
38 ${PYTHON_PN}-threading \
39 ${PYTHON_PN}-unittest \
40 ${PYTHON_PN}-xml \
41"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050042do_install_prepend() {
Patrick Williamsc0f7c042017-02-23 20:41:17 -060043 install -d ${D}${PYTHON_SITEPACKAGES_DIR}
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050044}
Brad Bishop316dfdd2018-06-25 12:45:53 -040045
46BBCLASSEXTEND = "native nativesdk"
Brad Bishop15ae2502019-06-18 21:44:24 -040047
48# The pkg-resources module can be used by itself, without the package downloader
49# and easy_install. Ship it in a separate package so that it can be used by
50# minimal distributions.
51PACKAGES =+ "${PYTHON_PN}-pkg-resources "
52FILES_${PYTHON_PN}-pkg-resources = "${PYTHON_SITEPACKAGES_DIR}/pkg_resources/*"
Andrew Geissler5a43b432020-06-13 10:46:56 -050053RDEPENDS_${PYTHON_PN}-pkg-resources = "\
54 ${PYTHON_PN}-compression \
55 ${PYTHON_PN}-email \
56 ${PYTHON_PN}-plistlib \
57 ${PYTHON_PN}-pprint \
58"
Brad Bishop15ae2502019-06-18 21:44:24 -040059# Due to the way OE-Core implemented native recipes, the native class cannot
60# have a dependency on something that is not a recipe name. Work around that by
61# manually setting RPROVIDES.
62RDEPENDS_${PN}_append = " ${PYTHON_PN}-pkg-resources"
63RPROVIDES_append_class-native = " ${PYTHON_PN}-pkg-resources-native"