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:44:33 +0000 |
commit | 11c36d4f1af0a461dc0d279f0ba1ca0a2ddf2356 (patch) | |
tree | 47671d488003d7b4a69ba8db1da3923045d74b26 /meta/classes | |
parent | 4b5885c2a66a084dd1d32b258a9a594916592cb4 (diff) | |
download | poky-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.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 | |||
2 | 2 | ||
3 | DEPENDS += "python3 python3-flit-core-native" | 3 | DEPENDS += "python3 python3-flit-core-native" |
4 | 4 | ||
5 | PEP517_BUILD_API = "flit_core.buildapi" | ||
6 | |||
5 | flit_core_do_configure () { | 7 | flit_core_do_configure () { |
6 | : | 8 | : |
7 | } | 9 | } |
8 | 10 | ||
9 | # TODO: ideally this uses pypa/build | 11 | EXPORT_FUNCTIONS do_configure |
10 | flit_core_do_compile () { | ||
11 | cd ${PEP517_SOURCE_PATH} | ||
12 | nativepython3 -mflit_core.wheel --outdir ${PEP517_WHEEL_PATH} | ||
13 | } | ||
14 | do_compile[cleandirs] += "${PEP517_WHEEL_PATH}" | ||
15 | |||
16 | EXPORT_FUNCTIONS do_configure do_compile | ||