]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
python_setuptools_build_meta: clean the build directory in configure
authorRoss Burton <ross.burton@arm.com>
Tue, 29 Jul 2025 08:59:35 +0000 (09:59 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 31 Jul 2025 09:47:57 +0000 (10:47 +0100)
It's not currently possible to set the build tree to be somewhere we
control, but we know it will always be in the build directory alongside
the pyproject.toml so we can [cleandirs] that.

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/classes-recipe/python_setuptools_build_meta.bbclass

index 4c84d1e8d0bb140da04fd2033415d9a4c74c7d67..046b4ffb74f03490ec02e3bf0da857fa115ccdbb 100644 (file)
@@ -7,3 +7,7 @@
 inherit setuptools3-base python_pep517
 
 DEPENDS += "python3-setuptools-native python3-wheel-native"
+
+# This isn't nice, but is the best solutions to ensure clean builds for now.
+# https://github.com/pypa/setuptools/issues/4732
+do_configure[cleandirs] = "${PEP517_SOURCE_PATH}/build"