mirror of
https://git.yoctoproject.org/poky
synced 2026-04-18 21:32:12 +02:00
python3-pip: clean up PYPA_WHEEL usage
There's no need to set PYPA_WHEEL as the default is sufficient. 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. (From OE-Core rev: b74d1c30d000c258c3f89ee125ae79ff07c25674) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
ea6c0faba3
commit
7f4c9a6343
@@ -18,13 +18,10 @@ SRC_URI += "file://reproducible.patch"
|
||||
|
||||
SRC_URI[sha256sum] = "f29d589df8c8ab99c060e68ad294c4a9ed896624f6368c5349d70aa581b333d0"
|
||||
|
||||
PYPA_WHEEL ?= "${B}/dist/${PYPI_PACKAGE}-${PV}-*.whl"
|
||||
|
||||
do_install:class-native() {
|
||||
# Bootstrap to prevent dependency loop in python3-pip-native
|
||||
install -d ${D}${PYTHON_SITEPACKAGES_DIR}
|
||||
unzip -d ${D}${PYTHON_SITEPACKAGES_DIR} ${PYPA_WHEEL} || \
|
||||
bbfatal_log "Failed to unzip wheel: ${PYPA_WHEEL}. Check the logs."
|
||||
unzip -d ${D}${PYTHON_SITEPACKAGES_DIR} ${PIP_INSTALL_DIST_PATH}/*.whl
|
||||
|
||||
# pip install would normally generate [console_scripts] in ${bindir}
|
||||
install -d ${D}/${bindir}
|
||||
|
||||
Reference in New Issue
Block a user