mirror of
https://git.yoctoproject.org/poky
synced 2026-02-08 01:36:38 +01:00
Now we have the start of a PEP-517 base class, the PEP517_SOURCE_PATH variable can be defined in there instead of the classes that use it. (From OE-Core rev: 69944121f49f613568bf0c62ae6b3b47af195dbe) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
17 lines
400 B
Plaintext
17 lines
400 B
Plaintext
inherit python_pep517 python3native python3-dir setuptools3-base
|
|
|
|
DEPENDS += "python3 python3-flit-core-native"
|
|
|
|
flit_core_do_configure () {
|
|
:
|
|
}
|
|
|
|
# TODO: ideally this uses pypa/build
|
|
flit_core_do_compile () {
|
|
cd ${PEP517_SOURCE_PATH}
|
|
nativepython3 -mflit_core.wheel --outdir ${PEP517_WHEEL_PATH}
|
|
}
|
|
do_compile[cleandirs] += "${PEP517_WHEEL_PATH}"
|
|
|
|
EXPORT_FUNCTIONS do_configure do_compile
|