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 | |
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')
-rw-r--r-- | meta/classes/python_flit_core.bbclass | 5 | ||||
-rw-r--r-- | meta/recipes-devtools/python/python3-flit-core_3.7.1.bb | 4 |
2 files changed, 9 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 | } | ||
diff --git a/meta/recipes-devtools/python/python3-flit-core_3.7.1.bb b/meta/recipes-devtools/python/python3-flit-core_3.7.1.bb index 8d107384a6..abe620374c 100644 --- a/meta/recipes-devtools/python/python3-flit-core_3.7.1.bb +++ b/meta/recipes-devtools/python/python3-flit-core_3.7.1.bb | |||
@@ -20,6 +20,10 @@ DEPENDS:append:class-native = " unzip-native" | |||
20 | PYPI_PACKAGE = "flit" | 20 | PYPI_PACKAGE = "flit" |
21 | PEP517_SOURCE_PATH = "${S}/flit_core" | 21 | PEP517_SOURCE_PATH = "${S}/flit_core" |
22 | 22 | ||
23 | do_compile:class-native () { | ||
24 | python_flit_core_do_manual_build | ||
25 | } | ||
26 | |||
23 | do_install:class-native () { | 27 | do_install:class-native () { |
24 | python_pep517_do_bootstrap_install | 28 | python_pep517_do_bootstrap_install |
25 | } | 29 | } |