diff options
author | Ross Burton <ross@burtonini.com> | 2022-03-16 18:32:38 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-17 16:43:04 +0000 |
commit | 0d3e07177e99d925f2807b85d16596455944d0a5 (patch) | |
tree | b5536eb2ec18aa01a801a4143fdf368ef8e50eff /meta/classes | |
parent | df1d4ed389f0c5f148f9940ce849e3ed64d34923 (diff) | |
download | openembedded-core-contrib-0d3e07177e99d925f2807b85d16596455944d0a5.tar.gz |
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 <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/flit_core.bbclass | 11 |
1 files changed, 3 insertions, 8 deletions
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 |