From: Ross Burton Date: Tue, 29 Jul 2025 08:59:34 +0000 (+0100) Subject: setuptools3: clean the build directory in configure X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb635630c17a2199b7b305d5d6945d6eae9ae0fe;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git setuptools3: clean the build directory in configure 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 Signed-off-by: Mathieu Dubois-Briand --- diff --git a/meta/classes-recipe/setuptools3.bbclass b/meta/classes-recipe/setuptools3.bbclass index a54da8b7f5..0bbe378023 100644 --- a/meta/classes-recipe/setuptools3.bbclass +++ b/meta/classes-recipe/setuptools3.bbclass @@ -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}