summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2022-03-08 16:32:02 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-09 11:46:28 +0000
commitc6ac2030615975ceeab87ffa8e7c9fddf78eb6be (patch)
tree1a5e322505b3ad8c65e984afde8652eeb0da6710 /meta
parent60fbc692fae12b49daaa996e2d58504c59f1ddce (diff)
downloadpoky-c6ac2030615975ceeab87ffa8e7c9fddf78eb6be.tar.gz
python3-wheel: clean up PYPA_WHEEL usage
Remove the use of PYPA_WHEEL in the native do_install() as this variable will be disappearing shortly. Remove the bbfatal_log in the native do_install(), if this breaks then something has gone very wrong and the user is not expected to fix it. Also flit_core inherits setuptools3-base, so no need to inherit it again. (From OE-Core rev: e2c7501645eec12d3168b6e8606549ce3e5f8db2) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/python/python3-wheel_0.37.1.bb7
1 files changed, 2 insertions, 5 deletions
diff --git a/meta/recipes-devtools/python/python3-wheel_0.37.1.bb b/meta/recipes-devtools/python/python3-wheel_0.37.1.bb
index 91bff82509..83a7c986a8 100644
--- a/meta/recipes-devtools/python/python3-wheel_0.37.1.bb
+++ b/meta/recipes-devtools/python/python3-wheel_0.37.1.bb
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=10;endline=10;md5=8227180126797a01
6 6
7SRC_URI[sha256sum] = "e9a504e793efbca1b8e0e9cb979a249cf4a0a7b5b8c9e8b65a5e39d49529c1c4" 7SRC_URI[sha256sum] = "e9a504e793efbca1b8e0e9cb979a249cf4a0a7b5b8c9e8b65a5e39d49529c1c4"
8 8
9inherit flit_core pypi setuptools3-base 9inherit flit_core pypi
10 10
11SRC_URI += " file://0001-Backport-pyproject.toml-from-flit-backend-branch.patch" 11SRC_URI += " file://0001-Backport-pyproject.toml-from-flit-backend-branch.patch"
12 12
@@ -15,9 +15,7 @@ DEPENDS:remove:class-native = "python3-pip-native"
15do_install:class-native () { 15do_install:class-native () {
16 # We need to bootstrap python3-wheel-native 16 # We need to bootstrap python3-wheel-native
17 install -d ${D}${PYTHON_SITEPACKAGES_DIR} 17 install -d ${D}${PYTHON_SITEPACKAGES_DIR}
18 PYPA_WHEEL="${B}/dist/${PYPI_PACKAGE}-${PV}-*.whl" 18 unzip -d ${D}${PYTHON_SITEPACKAGES_DIR} ${PIP_INSTALL_DIST_PATH}/*.whl
19 unzip -d ${D}${PYTHON_SITEPACKAGES_DIR} ${PYPA_WHEEL} || \
20 bbfatal_log "Failed to install"
21 19
22 # pip install would normally generate [project.scripts] in ${bindir} 20 # pip install would normally generate [project.scripts] in ${bindir}
23 install -d ${D}/${bindir} 21 install -d ${D}/${bindir}
@@ -37,4 +35,3 @@ EOF
37} 35}
38 36
39BBCLASSEXTEND = "native nativesdk" 37BBCLASSEXTEND = "native nativesdk"
40