mirror of
https://git.yoctoproject.org/poky
synced 2026-04-09 02:02:26 +02:00
pip_install_wheel expects the wheels to be in PIP_INSTALL_DIST_PATH but this class was writing to the same directory through chance not design. Respect PIP_INSTALL_DIST_PATH as the output directory, and use [cleandirs] to ensure that it exists and is empty. Also call the flit_core.wheel module directly as this is a public entry point to the wheel building logic. (From OE-Core rev: a3d9eb8051bc2effb8130b1743ba251c1fe7c525) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
16 lines
402 B
Plaintext
16 lines
402 B
Plaintext
inherit pip_install_wheel python3native python3-dir setuptools3-base
|
|
|
|
DEPENDS += "python3 python3-flit-core-native python3-pip-native"
|
|
|
|
flit_core_do_configure () {
|
|
:
|
|
}
|
|
|
|
# TODO: ideally this uses pypa/build
|
|
flit_core_do_compile () {
|
|
nativepython3 -mflit_core.wheel --outdir ${PIP_INSTALL_DIST_PATH}
|
|
}
|
|
do_compile[cleandirs] += "${PIP_INSTALL_DIST_PATH}"
|
|
|
|
EXPORT_FUNCTIONS do_configure do_compile
|