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" |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 5 | LIC_FILES_CHKSUM = "file://LICENSE;beginline=1;endline=19;md5=7a7126e068206290f3fe9f8d6c713ea6" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 6 | |
Andrew Geissler | 635e0e4 | 2020-08-21 15:58:33 -0500 | [diff] [blame] | 7 | inherit pypi setuptools3 |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 8 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 9 | SRC_URI_append_class-native = " file://0001-conditionally-do-not-fetch-code-by-easy_install.patch" |
| 10 | |
William A. Kennington III | ac69b48 | 2021-06-02 12:28:27 -0700 | [diff] [blame] | 11 | SRC_URI += "file://0001-change-shebang-to-python3.patch \ |
| 12 | file://reproducibility.patch" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 13 | |
William A. Kennington III | ac69b48 | 2021-06-02 12:28:27 -0700 | [diff] [blame] | 14 | SRC_URI[sha256sum] = "401cbf33a7bf817d08014d51560fc003b895c4cdc1a5b521ad2969e928a07535" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 15 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 16 | DEPENDS += "${PYTHON_PN}" |
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 | RDEPENDS_${PN} = "\ |
Andrew Geissler | 1e34c2d | 2020-05-29 16:02:59 -0500 | [diff] [blame] | 19 | ${PYTHON_PN}-2to3 \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 20 | ${PYTHON_PN}-compile \ |
| 21 | ${PYTHON_PN}-compression \ |
| 22 | ${PYTHON_PN}-ctypes \ |
| 23 | ${PYTHON_PN}-distutils \ |
| 24 | ${PYTHON_PN}-email \ |
| 25 | ${PYTHON_PN}-html \ |
Andrew Geissler | c182c62 | 2020-05-15 14:13:32 -0500 | [diff] [blame] | 26 | ${PYTHON_PN}-json \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 27 | ${PYTHON_PN}-netserver \ |
| 28 | ${PYTHON_PN}-numbers \ |
Andrew Geissler | 1e34c2d | 2020-05-29 16:02:59 -0500 | [diff] [blame] | 29 | ${PYTHON_PN}-pickle \ |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 30 | ${PYTHON_PN}-pkg-resources \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 31 | ${PYTHON_PN}-pkgutil \ |
| 32 | ${PYTHON_PN}-plistlib \ |
| 33 | ${PYTHON_PN}-shell \ |
| 34 | ${PYTHON_PN}-stringold \ |
| 35 | ${PYTHON_PN}-threading \ |
| 36 | ${PYTHON_PN}-unittest \ |
| 37 | ${PYTHON_PN}-xml \ |
| 38 | " |
Andrew Geissler | 635e0e4 | 2020-08-21 15:58:33 -0500 | [diff] [blame] | 39 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 40 | do_install_prepend() { |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 41 | install -d ${D}${PYTHON_SITEPACKAGES_DIR} |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 42 | } |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 43 | |
| 44 | BBCLASSEXTEND = "native nativesdk" |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 45 | |
| 46 | # The pkg-resources module can be used by itself, without the package downloader |
| 47 | # and easy_install. Ship it in a separate package so that it can be used by |
| 48 | # minimal distributions. |
| 49 | PACKAGES =+ "${PYTHON_PN}-pkg-resources " |
| 50 | FILES_${PYTHON_PN}-pkg-resources = "${PYTHON_SITEPACKAGES_DIR}/pkg_resources/*" |
Andrew Geissler | 5a43b43 | 2020-06-13 10:46:56 -0500 | [diff] [blame] | 51 | RDEPENDS_${PYTHON_PN}-pkg-resources = "\ |
| 52 | ${PYTHON_PN}-compression \ |
| 53 | ${PYTHON_PN}-email \ |
| 54 | ${PYTHON_PN}-plistlib \ |
| 55 | ${PYTHON_PN}-pprint \ |
| 56 | " |