diff options
| author | Ross Burton <ross@burtonini.com> | 2022-03-10 11:40:33 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-03-11 06:56:01 +0000 |
| commit | 5331d29a898da61ce2df78bc1ce36dc23dcc0017 (patch) | |
| tree | 22d30f9233a7997f5ca311b43b49e71a8186e7bc /meta/classes | |
| parent | 7f1c3b4202807ea612283a16954ef0434d98bc54 (diff) | |
| download | poky-5331d29a898da61ce2df78bc1ce36dc23dcc0017.tar.gz | |
pip_install_wheel: add a generic do_install for bootstrapping
Several recipes are duplicating the same bootstrap logic for installing
a wheel without using any tools. Add an implementation to
pip_install_wheel to centralise the code, and remove the duplicated code
from the following recipes:
- python3-flit-core
- python3-pip
- python3-setuptools
- python3-wheel
(From OE-Core rev: d5d702a2cd06f863340f8e4cdce0904c9d86384d)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
| -rw-r--r-- | meta/classes/pip_install_wheel.bbclass | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/pip_install_wheel.bbclass b/meta/classes/pip_install_wheel.bbclass index 3861dae75a..29cd544aa3 100644 --- a/meta/classes/pip_install_wheel.bbclass +++ b/meta/classes/pip_install_wheel.bbclass | |||
| @@ -40,4 +40,10 @@ pip_install_wheel_do_install () { | |||
| 40 | done | 40 | done |
| 41 | } | 41 | } |
| 42 | 42 | ||
| 43 | # A manual do_install that just uses unzip for bootstrapping purposes. Callers should DEPEND on unzip-native. | ||
| 44 | pip_install_wheel_do_bootstrap_install () { | ||
| 45 | install -d ${D}${PYTHON_SITEPACKAGES_DIR} | ||
| 46 | unzip -d ${D}${PYTHON_SITEPACKAGES_DIR} ${PIP_INSTALL_DIST_PATH}/*.whl | ||
| 47 | } | ||
| 48 | |||
| 43 | EXPORT_FUNCTIONS do_install | 49 | EXPORT_FUNCTIONS do_install |
