From fa43d680b586290d27a174b53d28f542300f8e36 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Wed, 13 Jul 2022 17:28:16 +0100 Subject: python3-installer: bootstrap by installing installer with installer The installer can install itself by simply adding src/ to PYTHONPATH. As this previously used unzip, we need to disable bytecode as otherwise the newly packaged .pyc files conflict with the any generated .pyc files in the sysroot. (From OE-Core rev: 825176ea8130a50cce221678f6fcba25ac956950) Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/recipes-devtools/python/python3-installer_0.5.1.bb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'meta') diff --git a/meta/recipes-devtools/python/python3-installer_0.5.1.bb b/meta/recipes-devtools/python/python3-installer_0.5.1.bb index f4f9e1bde6..b7780702d6 100644 --- a/meta/recipes-devtools/python/python3-installer_0.5.1.bb +++ b/meta/recipes-devtools/python/python3-installer_0.5.1.bb @@ -12,11 +12,13 @@ SRC_URI[sha256sum] = "f970995ec2bb815e2fdaf7977b26b2091e1e386f0f42eafd5ac811953d inherit pypi python_flit_core +# Bootstrap the native install by installing with ourself DEPENDS:remove:class-native = "python3-installer-native" -DEPENDS:append:class-native = " unzip-native" -do_install:class-native () { - python_pep517_do_bootstrap_install +INSTALL_WHEEL_COMPILE_BYTECODE:class-native = "--no-compile-bytecode" + +do_install:prepend:class-native() { + export PYTHONPATH="${S}/src" } BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf