diff options
| author | Ross Burton <ross@burtonini.com> | 2022-03-07 19:42:35 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-08 09:44:28 +0000 |
| commit | 025fa5266e0b83faab16811cb3662fa2b5885a99 (patch) | |
| tree | 892f5b96df8bfbc9ef5c2699a699b053f0c0f800 | |
| parent | 17b0f1ecc6e19eacbf01def6076e5ecf4afb6a49 (diff) | |
| download | poky-025fa5266e0b83faab16811cb3662fa2b5885a99.tar.gz | |
flit_core: clean up configure/compile
Make do_configure do nothing by default as the base configure isn't
useful, and invoke the build API directly instead of writing a script.
In the future, this can simply call python3-build.
(From OE-Core rev: 2d80529a486d25ad96c448499392547e82779de4)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/classes/flit_core.bbclass | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/meta/classes/flit_core.bbclass b/meta/classes/flit_core.bbclass index 819d12457c..a7667795fe 100644 --- a/meta/classes/flit_core.bbclass +++ b/meta/classes/flit_core.bbclass | |||
| @@ -3,15 +3,13 @@ inherit pip_install_wheel python3native python3-dir setuptools3-base | |||
| 3 | DEPENDS += "python3 python3-flit-core-native python3-pip-native" | 3 | DEPENDS += "python3 python3-flit-core-native python3-pip-native" |
| 4 | 4 | ||
| 5 | flit_core_do_configure () { | 5 | flit_core_do_configure () { |
| 6 | mkdir -p ${S}/dist | 6 | : |
| 7 | cat > ${S}/build-it.py << EOF | ||
| 8 | from flit_core import buildapi | ||
| 9 | buildapi.build_wheel('./dist') | ||
| 10 | EOF | ||
| 11 | } | 7 | } |
| 12 | 8 | ||
| 9 | # TODO: ideally this uses pypa/build | ||
| 13 | flit_core_do_compile () { | 10 | flit_core_do_compile () { |
| 14 | ${STAGING_BINDIR_NATIVE}/${PYTHON_PN}-native/${PYTHON_PN} ${S}/build-it.py | 11 | mkdir -p ${S}/dist |
| 12 | nativepython3 -c "from flit_core import buildapi; buildapi.build_wheel('./dist')" | ||
| 15 | } | 13 | } |
| 16 | 14 | ||
| 17 | EXPORT_FUNCTIONS do_configure do_compile | 15 | EXPORT_FUNCTIONS do_configure do_compile |
