Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 1 | SUMMARY = "Download, build, install, upgrade, and uninstall Python packages" |
| 2 | HOMEPAGE = "https://pypi.python.org/pypi/setuptools" |
| 3 | SECTION = "devel/python" |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 4 | LICENSE = "MIT" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 5 | LIC_FILES_CHKSUM = "file://LICENSE;beginline=1;endline=19;md5=9a33897f1bca1160d7aad3835152e158" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 6 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 7 | PYPI_PACKAGE_EXT = "zip" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 8 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 9 | inherit pypi |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 10 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 11 | SRC_URI_append_class-native = " file://0001-conditionally-do-not-fetch-code-by-easy_install.patch" |
| 12 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 13 | SRC_URI += "file://0001-change-shebang-to-python3.patch" |
| 14 | |
| 15 | SRC_URI[md5sum] = "0c956eea142af9c2b02d72e3c042af30" |
| 16 | SRC_URI[sha256sum] = "89c6e6011ec2f6d57d43a3f9296c4ef022c2cbf49bab26b407fe67992ae3397f" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 17 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 18 | DEPENDS += "${PYTHON_PN}" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 19 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 20 | RDEPENDS_${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 \ |
| 27 | ${PYTHON_PN}-netserver \ |
| 28 | ${PYTHON_PN}-numbers \ |
| 29 | ${PYTHON_PN}-pkgutil \ |
| 30 | ${PYTHON_PN}-plistlib \ |
| 31 | ${PYTHON_PN}-shell \ |
| 32 | ${PYTHON_PN}-stringold \ |
| 33 | ${PYTHON_PN}-threading \ |
| 34 | ${PYTHON_PN}-unittest \ |
| 35 | ${PYTHON_PN}-xml \ |
| 36 | " |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 37 | do_install_prepend() { |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 38 | install -d ${D}${PYTHON_SITEPACKAGES_DIR} |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 39 | } |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 40 | |
| 41 | BBCLASSEXTEND = "native nativesdk" |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 42 | |
| 43 | # The pkg-resources module can be used by itself, without the package downloader |
| 44 | # and easy_install. Ship it in a separate package so that it can be used by |
| 45 | # minimal distributions. |
| 46 | PACKAGES =+ "${PYTHON_PN}-pkg-resources " |
| 47 | FILES_${PYTHON_PN}-pkg-resources = "${PYTHON_SITEPACKAGES_DIR}/pkg_resources/*" |
| 48 | # Due to the way OE-Core implemented native recipes, the native class cannot |
| 49 | # have a dependency on something that is not a recipe name. Work around that by |
| 50 | # manually setting RPROVIDES. |
| 51 | RDEPENDS_${PN}_append = " ${PYTHON_PN}-pkg-resources" |
| 52 | RPROVIDES_append_class-native = " ${PYTHON_PN}-pkg-resources-native" |