mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 09:32:13 +02:00
classes/flit_core: use python_pep517_do_compile
Instead of implementing our own do_compile, set PEP517_BUILD_API and use the generic do_compile. (From OE-Core rev: 0d3e07177e99d925f2807b85d16596455944d0a5) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
4b5885c2a6
commit
11c36d4f1a
@@ -2,15 +2,10 @@ inherit python_pep517 python3native python3-dir setuptools3-base
|
||||
|
||||
DEPENDS += "python3 python3-flit-core-native"
|
||||
|
||||
PEP517_BUILD_API = "flit_core.buildapi"
|
||||
|
||||
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
|
||||
EXPORT_FUNCTIONS do_configure
|
||||
|
||||
Reference in New Issue
Block a user