summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2025-07-29 09:59:34 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-07-31 10:48:35 +0100
commit6c0b36feb9d64841776dcf9d0815e9e1a5a6137e (patch)
tree3ed02ea3e83c0a5b5c2af29d49c4764ae18eb676
parent409d49c670c04dfa5a45f652502b85954a802a60 (diff)
downloadpoky-6c0b36feb9d64841776dcf9d0815e9e1a5a6137e.tar.gz
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>
-rw-r--r--meta/classes-recipe/setuptools3.bbclass3
1 files changed, 3 insertions, 0 deletions
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
30setuptools3_do_configure() { 30setuptools3_do_configure() {
31 : 31 :
32} 32}
33# This isn't nice, but is the best solutions to ensure clean builds for now.
34# https://github.com/pypa/setuptools/issues/4732
35do_configure[cleandirs] = "${SETUPTOOLS_SETUP_PATH}/build"
33 36
34setuptools3_do_compile() { 37setuptools3_do_compile() {
35 cd ${SETUPTOOLS_SETUP_PATH} 38 cd ${SETUPTOOLS_SETUP_PATH}