mirror of
https://git.yoctoproject.org/poky
synced 2026-04-05 08:02:25 +02:00
python3-wheel: inherit flit_core
Backport pyproject.toml from flit-backend branch. Inherit flit_core class to build Inherit pip_install_wheel to install wheels for target We need to bootstrap python3-wheel-native in order to have bdist_wheel available to python3-setuptools-native and the refactored setuptools3.bbclass. Simply unzip the wheel into PYTHON_SITEPACKAGES_DIR for class-native. [YOCTO #14638] (From OE-Core rev: 764d0c2e079b3511afe03deadf3ec922e41b89aa) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
29d6a3ae34
commit
f4c43d7921
@@ -6,7 +6,19 @@ LIC_FILES_CHKSUM = "file://PKG-INFO;beginline=10;endline=10;md5=8227180126797a01
|
||||
|
||||
SRC_URI[sha256sum] = "e9a504e793efbca1b8e0e9cb979a249cf4a0a7b5b8c9e8b65a5e39d49529c1c4"
|
||||
|
||||
inherit pypi setuptools3
|
||||
inherit flit_core pypi setuptools3-base
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
SRC_URI += " file://0001-Backport-pyproject.toml-from-flit-backend-branch.patch"
|
||||
|
||||
DEPENDS:remove:class-native = "python3-pip-native"
|
||||
|
||||
do_install:class-native () {
|
||||
# We need to bootstrap python3-wheel-native
|
||||
install -d ${D}${PYTHON_SITEPACKAGES_DIR}
|
||||
PYPA_WHEEL="${B}/dist/${PYPI_PACKAGE}-${PV}-*.whl"
|
||||
unzip -d ${D}${PYTHON_SITEPACKAGES_DIR} ${PYPA_WHEEL} || \
|
||||
bbfatal_log "Failed to install"
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user