mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
f695ef07d3
commit
8369e8c4c2
@@ -9,13 +9,8 @@ inherit pypi python_flit_core
|
||||
|
||||
DEPENDS += "python3-pyproject-hooks-native"
|
||||
|
||||
DEPENDS:remove:class-native = "python3-build-native"
|
||||
|
||||
# Skip dependencies as we're doing a minimal build to bootstrap
|
||||
PEP517_BUILD_OPTS:class-native = "--skip-dependency-check"
|
||||
|
||||
do_compile:prepend:class-native() {
|
||||
export PYTHONPATH="${S}/src"
|
||||
do_compile:class-native() {
|
||||
python_flit_core_do_manual_build
|
||||
}
|
||||
|
||||
RDEPENDS:${PN} += " \
|
||||
|
||||
Reference in New Issue
Block a user