mirror of
https://git.yoctoproject.org/poky
synced 2026-02-07 17:26:36 +01:00
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>
17 lines
361 B
Plaintext
17 lines
361 B
Plaintext
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
|
|
}
|
|
|