Message ID | 20220316183243.876234-3-ross.burton@arm.com |
---|---|
State | Accepted, archived |
Commit | 0d3e07177e99d925f2807b85d16596455944d0a5 |
Headers | show |
Series | [1/8] python3-packaging: remove duplicate python3-setuptools-native DEPENDS | expand |
diff --git a/meta/classes/flit_core.bbclass b/meta/classes/flit_core.bbclass index 5a602f54ab..81fdf93e47 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
Instead of implementing our own do_compile, set PEP517_BUILD_API and use the generic do_compile. Signed-off-by: Ross Burton <ross.burton@arm.com> --- meta/classes/flit_core.bbclass | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-)