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.

(From OE-Core rev: f3854f4f60801e3b6788bee3a0a1850fc498d536)

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>
This commit is contained in:
Ross Burton 2025-07-29 09:59:34 +01:00 committed by Richard Purdie
parent 409d49c670
commit 6c0b36feb9

View 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}