mirror of
https://git.yoctoproject.org/poky
synced 2026-06-04 02:00:04 +00:00
flit_core.bbclass: add helper for newer python packaging
Some python packages now use pyproject.toml and declare flit_core.buildapi as the build engine Use pip_install_wheel class to install. [YOCTO #14638] (From OE-Core rev: f0292098dc5afc62e0cd91d475edeb1784700795) 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
72887eca0d
commit
29d6a3ae34
@@ -0,0 +1,16 @@
|
||||
inherit pip_install_wheel python3native python3-dir
|
||||
|
||||
DEPENDS += "python3 python3-flit-core-native python3-pip-native"
|
||||
|
||||
do_configure () {
|
||||
mkdir -p ${S}/dist
|
||||
cat > ${S}/build-it.py << EOF
|
||||
from flit_core import buildapi
|
||||
buildapi.build_wheel('./dist')
|
||||
EOF
|
||||
}
|
||||
|
||||
do_compile () {
|
||||
${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} ${S}/build-it.py
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user