xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/python/python3-setuptools_59.5.0.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1SUMMARY = "Download, build, install, upgrade, and uninstall Python packages"
2HOMEPAGE = "https://pypi.org/project/setuptools"
3SECTION = "devel/python"
4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://LICENSE;beginline=1;endline=19;md5=7a7126e068206290f3fe9f8d6c713ea6"
6
7inherit pypi python_setuptools_build_meta
8
9SRC_URI:append:class-native = " file://0001-conditionally-do-not-fetch-code-by-easy_install.patch"
10
11SRC_URI += "\
12    file://0001-change-shebang-to-python3.patch \
13    file://0001-_distutils-sysconfig-append-STAGING_LIBDIR-python-sy.patch \
14    file://0001-Limit-the-amount-of-whitespace-to-search-backtrack.-.patch \
15"
16
17SRC_URI[sha256sum] = "d144f85102f999444d06f9c0e8c737fd0194f10f2f7e5fdb77573f6e2fa4fad0"
18
19DEPENDS += "${PYTHON_PN}"
20
21RDEPENDS:${PN} = "\
22    ${PYTHON_PN}-2to3 \
23    ${PYTHON_PN}-compile \
24    ${PYTHON_PN}-compression \
25    ${PYTHON_PN}-ctypes \
26    ${PYTHON_PN}-email \
27    ${PYTHON_PN}-html \
28    ${PYTHON_PN}-json \
29    ${PYTHON_PN}-netserver \
30    ${PYTHON_PN}-numbers \
31    ${PYTHON_PN}-pickle \
32    ${PYTHON_PN}-pkg-resources \
33    ${PYTHON_PN}-pkgutil \
34    ${PYTHON_PN}-plistlib \
35    ${PYTHON_PN}-shell \
36    ${PYTHON_PN}-stringold \
37    ${PYTHON_PN}-threading \
38    ${PYTHON_PN}-unittest \
39    ${PYTHON_PN}-xml \
40"
41
42BBCLASSEXTEND = "native nativesdk"
43
44# The pkg-resources module can be used by itself, without the package downloader
45# and easy_install. Ship it in a separate package so that it can be used by
46# minimal distributions.
47PACKAGES =+ "${PYTHON_PN}-pkg-resources "
48FILES:${PYTHON_PN}-pkg-resources = "${PYTHON_SITEPACKAGES_DIR}/pkg_resources/*"
49RDEPENDS:${PYTHON_PN}-pkg-resources = "\
50    ${PYTHON_PN}-compression \
51    ${PYTHON_PN}-email \
52    ${PYTHON_PN}-plistlib \
53    ${PYTHON_PN}-pprint \
54"
55
56# This used to use the bootstrap install which didn't compile. Until we bump the
57# tmpdir version we can't compile the native otherwise the sysroot unpack fails
58INSTALL_WHEEL_COMPILE_BYTECODE:class-native = "--no-compile-bytecode"
59