Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 1 | SUMMARY = "Download, build, install, upgrade, and uninstall Python packages" |
Andrew Geissler | d25ed32 | 2020-06-27 00:28:28 -0500 | [diff] [blame^] | 2 | HOMEPAGE = "https://pypi.org/project/setuptools" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 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 | d25ed32 | 2020-06-27 00:28:28 -0500 | [diff] [blame^] | 13 | SRC_URI += "file://0001-change-shebang-to-python3.patch \ |
| 14 | file://0001-ScriptWriter-create-more-efficient-usr-bin-wrappers-signoff-included.patch \ |
| 15 | " |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 16 | |
Andrew Geissler | 4ed12e1 | 2020-06-05 18:00:41 -0500 | [diff] [blame] | 17 | SRC_URI[md5sum] = "6e9de90b242fdd60ef59f497424ce13a" |
| 18 | SRC_URI[sha256sum] = "145fa62b9d7bb544fce16e9b5a9bf4ab2032d2f758b7cd674af09a92736aff74" |
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 | DEPENDS += "${PYTHON_PN}" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 21 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 22 | RDEPENDS_${PN} = "\ |
Andrew Geissler | 1e34c2d | 2020-05-29 16:02:59 -0500 | [diff] [blame] | 23 | ${PYTHON_PN}-2to3 \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 24 | ${PYTHON_PN}-compile \ |
| 25 | ${PYTHON_PN}-compression \ |
| 26 | ${PYTHON_PN}-ctypes \ |
| 27 | ${PYTHON_PN}-distutils \ |
| 28 | ${PYTHON_PN}-email \ |
| 29 | ${PYTHON_PN}-html \ |
Andrew Geissler | c182c62 | 2020-05-15 14:13:32 -0500 | [diff] [blame] | 30 | ${PYTHON_PN}-json \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 31 | ${PYTHON_PN}-netserver \ |
| 32 | ${PYTHON_PN}-numbers \ |
Andrew Geissler | 1e34c2d | 2020-05-29 16:02:59 -0500 | [diff] [blame] | 33 | ${PYTHON_PN}-pickle \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 34 | ${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 Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 42 | do_install_prepend() { |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 43 | install -d ${D}${PYTHON_SITEPACKAGES_DIR} |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 44 | } |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 45 | |
| 46 | BBCLASSEXTEND = "native nativesdk" |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 47 | |
| 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. |
| 51 | PACKAGES =+ "${PYTHON_PN}-pkg-resources " |
| 52 | FILES_${PYTHON_PN}-pkg-resources = "${PYTHON_SITEPACKAGES_DIR}/pkg_resources/*" |
Andrew Geissler | 5a43b43 | 2020-06-13 10:46:56 -0500 | [diff] [blame] | 53 | RDEPENDS_${PYTHON_PN}-pkg-resources = "\ |
| 54 | ${PYTHON_PN}-compression \ |
| 55 | ${PYTHON_PN}-email \ |
| 56 | ${PYTHON_PN}-plistlib \ |
| 57 | ${PYTHON_PN}-pprint \ |
| 58 | " |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 59 | # 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. |
| 62 | RDEPENDS_${PN}_append = " ${PYTHON_PN}-pkg-resources" |
| 63 | RPROVIDES_append_class-native = " ${PYTHON_PN}-pkg-resources-native" |