diff options
| author | Ross Burton <ross.burton@arm.com> | 2022-07-13 17:28:15 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-07-14 23:22:10 +0100 |
| commit | 60cabad4d5466ac4f730d3f51f7c503723898832 (patch) | |
| tree | d7e2ec5bbbdd8bd5935ec04a54495c67aeb8598d /meta/classes | |
| parent | 32828d38163a4ea339b226574db6360c732b37a4 (diff) | |
| download | poky-60cabad4d5466ac4f730d3f51f7c503723898832.tar.gz | |
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>
Diffstat (limited to 'meta/classes')
| -rw-r--r-- | meta/classes/python_flit_core.bbclass | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/python_flit_core.bbclass b/meta/classes/python_flit_core.bbclass index 96652aa204..a900f7b557 100644 --- a/meta/classes/python_flit_core.bbclass +++ b/meta/classes/python_flit_core.bbclass | |||
| @@ -3,3 +3,8 @@ inherit python_pep517 python3native python3-dir setuptools3-base | |||
| 3 | DEPENDS += "python3 python3-flit-core-native" | 3 | DEPENDS += "python3 python3-flit-core-native" |
| 4 | 4 | ||
| 5 | PEP517_BUILD_API = "flit_core.buildapi" | 5 | PEP517_BUILD_API = "flit_core.buildapi" |
| 6 | |||
| 7 | python_flit_core_do_manual_build () { | ||
| 8 | cd ${PEP517_SOURCE_PATH} | ||
| 9 | nativepython3 -m flit_core.wheel --outdir ${PEP517_WHEEL_PATH} . | ||
| 10 | } | ||
