summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorTim Orling <ticotimo@gmail.com>2022-02-22 11:16:42 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-02-25 15:07:50 +0000
commitfffeecbd9a8df7f3edc36dd0830dd6b10334c1b0 (patch)
tree7f4f5021e128c2b230adf71571fa545af4b0bf2e /meta
parent9dcc0b64b330d08b1ef1cf111da509675eb40c42 (diff)
downloadpoky-fffeecbd9a8df7f3edc36dd0830dd6b10334c1b0.tar.gz
python3-setuptools: inherit setuptools_base_meta
Upstream provides a pyproject.toml which declares the setuptools.build_meta backend for PEP-517 packaging. We need to bootstrap python3-setuptools-native, simply installing by unzipping the built wheel. This avoids a dependency loop. [YOCTO #14638] (From OE-Core rev: 889c05e5b4ce9a36b4ac3ac869c1ef55c2f8b566) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/python/python3-setuptools_59.5.0.bb19
1 files changed, 14 insertions, 5 deletions
diff --git a/meta/recipes-devtools/python/python3-setuptools_59.5.0.bb b/meta/recipes-devtools/python/python3-setuptools_59.5.0.bb
index 33ca928c3e..2155101d30 100644
--- a/meta/recipes-devtools/python/python3-setuptools_59.5.0.bb
+++ b/meta/recipes-devtools/python/python3-setuptools_59.5.0.bb
@@ -4,7 +4,7 @@ SECTION = "devel/python"
4LICENSE = "MIT" 4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://LICENSE;beginline=1;endline=19;md5=7a7126e068206290f3fe9f8d6c713ea6" 5LIC_FILES_CHKSUM = "file://LICENSE;beginline=1;endline=19;md5=7a7126e068206290f3fe9f8d6c713ea6"
6 6
7inherit pypi setuptools3 7inherit pypi setuptools_build_meta
8 8
9SRC_URI:append:class-native = " file://0001-conditionally-do-not-fetch-code-by-easy_install.patch" 9SRC_URI:append:class-native = " file://0001-conditionally-do-not-fetch-code-by-easy_install.patch"
10 10
@@ -17,6 +17,19 @@ SRC_URI[sha256sum] = "d144f85102f999444d06f9c0e8c737fd0194f10f2f7e5fdb77573f6e2f
17 17
18DEPENDS += "${PYTHON_PN}" 18DEPENDS += "${PYTHON_PN}"
19 19
20# Avoid dependency loop; we bootstrap -native
21DEPENDS:remove:class-native = "python3-pip-native python3-setuptools-native"
22DEPENDS:append:class-native = " unzip-native"
23
24PYPA_WHEEL ?= "${B}/dist/${PYPI_PACKAGE}-${PV}-*.whl"
25
26do_install:class-native() {
27 # Bootstrap to prevent dependency loop in python3-pip-native
28 install -d ${D}${PYTHON_SITEPACKAGES_DIR}
29 unzip -d ${D}${PYTHON_SITEPACKAGES_DIR} ${PYPA_WHEEL} || \
30 bbfatal_log "Failed to unzip wheel: ${PYPA_WHEEL}. Check the logs."
31}
32
20RDEPENDS:${PN} = "\ 33RDEPENDS:${PN} = "\
21 ${PYTHON_PN}-2to3 \ 34 ${PYTHON_PN}-2to3 \
22 ${PYTHON_PN}-compile \ 35 ${PYTHON_PN}-compile \
@@ -38,10 +51,6 @@ RDEPENDS:${PN} = "\
38 ${PYTHON_PN}-xml \ 51 ${PYTHON_PN}-xml \
39" 52"
40 53
41do_install:prepend() {
42 install -d ${D}${PYTHON_SITEPACKAGES_DIR}
43}
44
45BBCLASSEXTEND = "native nativesdk" 54BBCLASSEXTEND = "native nativesdk"
46 55
47# The pkg-resources module can be used by itself, without the package downloader 56# The pkg-resources module can be used by itself, without the package downloader