summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2025-08-01 15:27:11 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-08-07 12:11:15 +0100
commit8369e8c4c2c8fc410aae3cd9bb96e036a4e63641 (patch)
tree1f5ec6243c2e317d212e541b93e1cadfa573d051 /meta/recipes-devtools/python
parentf695ef07d333a907f33c72a4809a8628be3e7f2e (diff)
downloadpoky-8369e8c4c2c8fc410aae3cd9bb96e036a4e63641.tar.gz
python3-build: simplifly native bootstrap
The pep517 class no longer called the "build" module directly, so we can't play games with PYTHONPATH here. However, the flit_core class has a bootstrap method so this recipe can use that instead. (From OE-Core rev: ae85c85b28fd01591ace2f48159cdc7fbc05a26a) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python')
-rw-r--r--meta/recipes-devtools/python/python3-build_1.2.2.bb9
1 files changed, 2 insertions, 7 deletions
diff --git a/meta/recipes-devtools/python/python3-build_1.2.2.bb b/meta/recipes-devtools/python/python3-build_1.2.2.bb
index 8f2ee92060..8d4ae2ca1d 100644
--- a/meta/recipes-devtools/python/python3-build_1.2.2.bb
+++ b/meta/recipes-devtools/python/python3-build_1.2.2.bb
@@ -9,13 +9,8 @@ inherit pypi python_flit_core
9 9
10DEPENDS += "python3-pyproject-hooks-native" 10DEPENDS += "python3-pyproject-hooks-native"
11 11
12DEPENDS:remove:class-native = "python3-build-native" 12do_compile:class-native() {
13 13 python_flit_core_do_manual_build
14# Skip dependencies as we're doing a minimal build to bootstrap
15PEP517_BUILD_OPTS:class-native = "--skip-dependency-check"
16
17do_compile:prepend:class-native() {
18 export PYTHONPATH="${S}/src"
19} 14}
20 15
21RDEPENDS:${PN} += " \ 16RDEPENDS:${PN} += " \