mirror of
https://git.yoctoproject.org/poky
synced 2026-02-07 01:06:37 +01:00
The PEP517[1] pyproject.toml doesn't have to be located at the top-level of the source tree (for example, in recipes with multiple components), so add a variable PEP517_SOURCE_PATH to set where the file is. In the future there should be a pep517.bbclass to centralise the common logic, but for now this can be defined in each of the relevant classes. [1] https://www.python.org/dev/peps/pep-0517/ (From OE-Core rev: f85b512e2ad39ec32f11f9b25b8c92bea20c844d) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
20 lines
503 B
Plaintext
20 lines
503 B
Plaintext
inherit pip_install_wheel python3native python3-dir setuptools3-base
|
|
|
|
DEPENDS += "python3 python3-flit-core-native python3-pip-native"
|
|
|
|
flit_core_do_configure () {
|
|
:
|
|
}
|
|
|
|
# Where to execute the build process from
|
|
PEP517_SOURCE_PATH ?= "${S}"
|
|
|
|
# TODO: ideally this uses pypa/build
|
|
flit_core_do_compile () {
|
|
cd ${PEP517_SOURCE_PATH}
|
|
nativepython3 -mflit_core.wheel --outdir ${PIP_INSTALL_DIST_PATH}
|
|
}
|
|
do_compile[cleandirs] += "${PIP_INSTALL_DIST_PATH}"
|
|
|
|
EXPORT_FUNCTIONS do_configure do_compile
|