diff options
author | Ross Burton <ross.burton@arm.com> | 2022-07-13 17:28:16 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-07-14 23:22:10 +0100 |
commit | fa43d680b586290d27a174b53d28f542300f8e36 (patch) | |
tree | 60be93b0cc41880a1de7a47741e734630d3e10ea /meta | |
parent | 60cabad4d5466ac4f730d3f51f7c503723898832 (diff) | |
download | poky-fa43d680b586290d27a174b53d28f542300f8e36.tar.gz |
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 <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/python/python3-installer_0.5.1.bb | 8 |
1 files changed, 5 insertions, 3 deletions
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 | |||
12 | 12 | ||
13 | inherit pypi python_flit_core | 13 | inherit pypi python_flit_core |
14 | 14 | ||
15 | # Bootstrap the native install by installing with ourself | ||
15 | DEPENDS:remove:class-native = "python3-installer-native" | 16 | DEPENDS:remove:class-native = "python3-installer-native" |
16 | DEPENDS:append:class-native = " unzip-native" | ||
17 | 17 | ||
18 | do_install:class-native () { | 18 | INSTALL_WHEEL_COMPILE_BYTECODE:class-native = "--no-compile-bytecode" |
19 | python_pep517_do_bootstrap_install | 19 | |
20 | do_install:prepend:class-native() { | ||
21 | export PYTHONPATH="${S}/src" | ||
20 | } | 22 | } |
21 | 23 | ||
22 | BBCLASSEXTEND = "native nativesdk" | 24 | BBCLASSEXTEND = "native nativesdk" |