From: Ross Burton Date: Wed, 16 Mar 2022 18:32:38 +0000 (+0000) Subject: classes/flit_core: use python_pep517_do_compile X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~4743 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d3e07177e99d925f2807b85d16596455944d0a5;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- diff --git a/meta/classes/flit_core.bbclass b/meta/classes/flit_core.bbclass index 5a602f54ab8..81fdf93e474 100644 --- a/meta/classes/flit_core.bbclass +++ b/meta/classes/flit_core.bbclass @@ -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