]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
setuptools3: clean the build directory in configure
authorRoss Burton <ross.burton@arm.com>
Tue, 29 Jul 2025 08:59:34 +0000 (09:59 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 31 Jul 2025 09:47:56 +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 setup.py 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/setuptools3.bbclass

index a54da8b7f557e594081a083388b716c01fc8d881..0bbe3780231415963b7c05ad4a8cdb4b6afd3469 100644 (file)
@@ -30,6 +30,9 @@ addtask check_backend after do_patch before do_configure
 setuptools3_do_configure() {
     :
 }
+# 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] = "${SETUPTOOLS_SETUP_PATH}/build"
 
 setuptools3_do_compile() {
         cd ${SETUPTOOLS_SETUP_PATH}