diff options
| author | Ross Burton <ross.burton@arm.com> | 2025-08-01 15:27:11 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-08-07 12:11:15 +0100 |
| commit | 8369e8c4c2c8fc410aae3cd9bb96e036a4e63641 (patch) | |
| tree | 1f5ec6243c2e317d212e541b93e1cadfa573d051 /meta/recipes-devtools/python | |
| parent | f695ef07d333a907f33c72a4809a8628be3e7f2e (diff) | |
| download | poky-8369e8c4c2c8fc410aae3cd9bb96e036a4e63641.tar.gz | |
python3-build: simplifly native bootstrap
The pep517 class no longer called the "build" module directly, so we
can't play games with PYTHONPATH here.
However, the flit_core class has a bootstrap method so this recipe can
use that instead.
(From OE-Core rev: ae85c85b28fd01591ace2f48159cdc7fbc05a26a)
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>
Diffstat (limited to 'meta/recipes-devtools/python')
| -rw-r--r-- | meta/recipes-devtools/python/python3-build_1.2.2.bb | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/meta/recipes-devtools/python/python3-build_1.2.2.bb b/meta/recipes-devtools/python/python3-build_1.2.2.bb index 8f2ee92060..8d4ae2ca1d 100644 --- a/meta/recipes-devtools/python/python3-build_1.2.2.bb +++ b/meta/recipes-devtools/python/python3-build_1.2.2.bb | |||
| @@ -9,13 +9,8 @@ inherit pypi python_flit_core | |||
| 9 | 9 | ||
| 10 | DEPENDS += "python3-pyproject-hooks-native" | 10 | DEPENDS += "python3-pyproject-hooks-native" |
| 11 | 11 | ||
| 12 | DEPENDS:remove:class-native = "python3-build-native" | 12 | do_compile:class-native() { |
| 13 | 13 | python_flit_core_do_manual_build | |
| 14 | # Skip dependencies as we're doing a minimal build to bootstrap | ||
| 15 | PEP517_BUILD_OPTS:class-native = "--skip-dependency-check" | ||
| 16 | |||
| 17 | do_compile:prepend:class-native() { | ||
| 18 | export PYTHONPATH="${S}/src" | ||
| 19 | } | 14 | } |
| 20 | 15 | ||
| 21 | RDEPENDS:${PN} += " \ | 16 | RDEPENDS:${PN} += " \ |
