From 0d3e07177e99d925f2807b85d16596455944d0a5 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Wed, 16 Mar 2022 18:32:38 +0000 Subject: [PATCH] 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 --- meta/classes/flit_core.bbclass | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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 -- 2.47.2