diff options
author | Ross Burton <ross.burton@arm.com> | 2025-07-29 09:59:34 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-07-31 10:48:35 +0100 |
commit | 6c0b36feb9d64841776dcf9d0815e9e1a5a6137e (patch) | |
tree | 3ed02ea3e83c0a5b5c2af29d49c4764ae18eb676 | |
parent | 409d49c670c04dfa5a45f652502b85954a802a60 (diff) | |
download | poky-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.bbclass | 3 |
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 | |||
30 | setuptools3_do_configure() { | 30 | setuptools3_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 | ||
35 | do_configure[cleandirs] = "${SETUPTOOLS_SETUP_PATH}/build" | ||
33 | 36 | ||
34 | setuptools3_do_compile() { | 37 | setuptools3_do_compile() { |
35 | cd ${SETUPTOOLS_SETUP_PATH} | 38 | cd ${SETUPTOOLS_SETUP_PATH} |