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 | |
Andrew Geissler | 475cb72 | 2020-07-10 16:00:51 -0500 | [diff] [blame] | 11 | SRC_URI += "file://0001-change-shebang-to-python3.patch" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 12 | |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame^] | 13 | SRC_URI[sha256sum] = "fb3a1ee622509550dbf1d419f241296169d7f09cb1eb5b1736f2f10965932b96" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 14 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 15 | DEPENDS += "${PYTHON_PN}" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 16 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 17 | RDEPENDS_${PN} = "\ |
Andrew Geissler | 1e34c2d | 2020-05-29 16:02:59 -0500 | [diff] [blame] | 18 | ${PYTHON_PN}-2to3 \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 19 | ${PYTHON_PN}-compile \ |
| 20 | ${PYTHON_PN}-compression \ |
| 21 | ${PYTHON_PN}-ctypes \ |
| 22 | ${PYTHON_PN}-distutils \ |
| 23 | ${PYTHON_PN}-email \ |
| 24 | ${PYTHON_PN}-html \ |
Andrew Geissler | c182c62 | 2020-05-15 14:13:32 -0500 | [diff] [blame] | 25 | ${PYTHON_PN}-json \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 26 | ${PYTHON_PN}-netserver \ |
| 27 | ${PYTHON_PN}-numbers \ |
Andrew Geissler | 1e34c2d | 2020-05-29 16:02:59 -0500 | [diff] [blame] | 28 | ${PYTHON_PN}-pickle \ |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame^] | 29 | ${PYTHON_PN}-pkg-resources \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 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 | " |
Andrew Geissler | 635e0e4 | 2020-08-21 15:58:33 -0500 | [diff] [blame] | 38 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 39 | do_install_prepend() { |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 40 | install -d ${D}${PYTHON_SITEPACKAGES_DIR} |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 41 | } |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 42 | |
| 43 | BBCLASSEXTEND = "native nativesdk" |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 44 | |
| 45 | # The pkg-resources module can be used by itself, without the package downloader |
| 46 | # and easy_install. Ship it in a separate package so that it can be used by |
| 47 | # minimal distributions. |
| 48 | PACKAGES =+ "${PYTHON_PN}-pkg-resources " |
| 49 | FILES_${PYTHON_PN}-pkg-resources = "${PYTHON_SITEPACKAGES_DIR}/pkg_resources/*" |
Andrew Geissler | 5a43b43 | 2020-06-13 10:46:56 -0500 | [diff] [blame] | 50 | RDEPENDS_${PYTHON_PN}-pkg-resources = "\ |
| 51 | ${PYTHON_PN}-compression \ |
| 52 | ${PYTHON_PN}-email \ |
| 53 | ${PYTHON_PN}-plistlib \ |
| 54 | ${PYTHON_PN}-pprint \ |
| 55 | " |