diff options
| author | Ross Burton <ross.burton@arm.com> | 2025-07-29 09:59:35 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-07-31 10:48:35 +0100 |
| commit | ad488915b0e802f5525f9d857112e5513376fcaf (patch) | |
| tree | eb97e069883165cbef628f3b4c65bd98e0f4e518 | |
| parent | 6c0b36feb9d64841776dcf9d0815e9e1a5a6137e (diff) | |
| download | poky-ad488915b0e802f5525f9d857112e5513376fcaf.tar.gz | |
python_setuptools_build_meta: 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 pyproject.toml so we can [cleandirs] that.
(From OE-Core rev: 383862cfe4c5acf04124080827c8bc6d00b2e86d)
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/python_setuptools_build_meta.bbclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes-recipe/python_setuptools_build_meta.bbclass b/meta/classes-recipe/python_setuptools_build_meta.bbclass index 4c84d1e8d0..046b4ffb74 100644 --- a/meta/classes-recipe/python_setuptools_build_meta.bbclass +++ b/meta/classes-recipe/python_setuptools_build_meta.bbclass | |||
| @@ -7,3 +7,7 @@ | |||
| 7 | inherit setuptools3-base python_pep517 | 7 | inherit setuptools3-base python_pep517 |
| 8 | 8 | ||
| 9 | DEPENDS += "python3-setuptools-native python3-wheel-native" | 9 | DEPENDS += "python3-setuptools-native python3-wheel-native" |
| 10 | |||
| 11 | # This isn't nice, but is the best solutions to ensure clean builds for now. | ||
| 12 | # https://github.com/pypa/setuptools/issues/4732 | ||
| 13 | do_configure[cleandirs] = "${PEP517_SOURCE_PATH}/build" | ||
