summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python3-pip_22.0.3.bb
diff options
context:
space:
mode:
authorRoss Burton <ross@burtonini.com>2022-03-10 11:40:33 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-11 06:56:01 +0000
commit5331d29a898da61ce2df78bc1ce36dc23dcc0017 (patch)
tree22d30f9233a7997f5ca311b43b49e71a8186e7bc /meta/recipes-devtools/python/python3-pip_22.0.3.bb
parent7f1c3b4202807ea612283a16954ef0434d98bc54 (diff)
downloadpoky-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/recipes-devtools/python/python3-pip_22.0.3.bb')
-rw-r--r--meta/recipes-devtools/python/python3-pip_22.0.3.bb4
1 files changed, 1 insertions, 3 deletions
diff --git a/meta/recipes-devtools/python/python3-pip_22.0.3.bb b/meta/recipes-devtools/python/python3-pip_22.0.3.bb
index 50cc8206de..bce3b68861 100644
--- a/meta/recipes-devtools/python/python3-pip_22.0.3.bb
+++ b/meta/recipes-devtools/python/python3-pip_22.0.3.bb
@@ -19,9 +19,7 @@ SRC_URI += "file://reproducible.patch"
19SRC_URI[sha256sum] = "f29d589df8c8ab99c060e68ad294c4a9ed896624f6368c5349d70aa581b333d0" 19SRC_URI[sha256sum] = "f29d589df8c8ab99c060e68ad294c4a9ed896624f6368c5349d70aa581b333d0"
20 20
21do_install:class-native() { 21do_install:class-native() {
22 # Bootstrap to prevent dependency loop in python3-pip-native 22 pip_install_wheel_do_bootstrap_install
23 install -d ${D}${PYTHON_SITEPACKAGES_DIR}
24 unzip -d ${D}${PYTHON_SITEPACKAGES_DIR} ${PIP_INSTALL_DIST_PATH}/*.whl
25 23
26 # pip install would normally generate [console_scripts] in ${bindir} 24 # pip install would normally generate [console_scripts] in ${bindir}
27 install -d ${D}/${bindir} 25 install -d ${D}/${bindir}