]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
classes/setuptools_build_meta: clean the build directory in configure
authorRoss Burton <ross.burton@arm.com>
Mon, 3 Aug 2026 09:47:17 +0000 (10:47 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 6 Aug 2026 10:13:16 +0000 (11:13 +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 setup.py so we can [cleandirs] that.

Essentially the same as the previous patch for the setuptools class[1],
but when using the pep517 class.

[1] oe-core f3854f4f608 ("setuptools3: clean the build directory in configure")

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/python_setuptools_build_meta.bbclass

index c7b12e53093ea97d6c531ab8aea5848c9461fc64..f09f7e9a918ba08417136ff3cfa0a6d860dcd5e2 100644 (file)
@@ -7,3 +7,7 @@
 inherit 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"