summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2022-03-16 18:32:38 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-17 16:44:33 +0000
commit11c36d4f1af0a461dc0d279f0ba1ca0a2ddf2356 (patch)
tree47671d488003d7b4a69ba8db1da3923045d74b26 /meta/classes
parent4b5885c2a66a084dd1d32b258a9a594916592cb4 (diff)
downloadpoky-11c36d4f1af0a461dc0d279f0ba1ca0a2ddf2356.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. (From OE-Core rev: 0d3e07177e99d925f2807b85d16596455944d0a5) 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.bbclass11
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
2 2
3DEPENDS += "python3 python3-flit-core-native" 3DEPENDS += "python3 python3-flit-core-native"
4 4
5PEP517_BUILD_API = "flit_core.buildapi"
6
5flit_core_do_configure () { 7flit_core_do_configure () {
6 : 8 :
7} 9}
8 10
9# TODO: ideally this uses pypa/build 11EXPORT_FUNCTIONS do_configure
10flit_core_do_compile () {
11 cd ${PEP517_SOURCE_PATH}
12 nativepython3 -mflit_core.wheel --outdir ${PEP517_WHEEL_PATH}
13}
14do_compile[cleandirs] += "${PEP517_WHEEL_PATH}"
15
16EXPORT_FUNCTIONS do_configure do_compile