]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
python3-build: simplifly native bootstrap
authorRoss Burton <ross.burton@arm.com>
Fri, 1 Aug 2025 14:27:11 +0000 (15:27 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 7 Aug 2025 09:43:42 +0000 (10:43 +0100)
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.

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>
meta/recipes-devtools/python/python3-build_1.2.2.bb

index 8f2ee92060804be836e35ca37afae21e8a10e8e4..8d4ae2ca1d287d775b8ea05d461e74633ee80a1a 100644 (file)
@@ -9,13 +9,8 @@ inherit pypi python_flit_core
 
 DEPENDS += "python3-pyproject-hooks-native"
 
-DEPENDS:remove:class-native = "python3-build-native"
-
-# Skip dependencies as we're doing a minimal build to bootstrap
-PEP517_BUILD_OPTS:class-native = "--skip-dependency-check"
-
-do_compile:prepend:class-native() {
-    export PYTHONPATH="${S}/src"
+do_compile:class-native() {
+    python_flit_core_do_manual_build
 }
 
 RDEPENDS:${PN} += " \