python3-flit-core: bootstrap explicitly

Add a method to python_flit_core.bbclass that does a manual build with
flit explicitly, and use that to bootstrap python3-flit-core-native which
can build itself.

(From OE-Core rev: e902578c2c9aacdc83dcfa517bc1e57667fcc460)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton
2022-07-13 17:28:15 +01:00
committed by Richard Purdie
parent 32828d3816
commit 60cabad4d5
2 changed files with 9 additions and 0 deletions

View File

@@ -3,3 +3,8 @@ inherit python_pep517 python3native python3-dir setuptools3-base
DEPENDS += "python3 python3-flit-core-native"
PEP517_BUILD_API = "flit_core.buildapi"
python_flit_core_do_manual_build () {
cd ${PEP517_SOURCE_PATH}
nativepython3 -m flit_core.wheel --outdir ${PEP517_WHEEL_PATH} .
}