summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python
diff options
context:
space:
mode:
authorTim Orling <ticotimo@gmail.com>2022-02-24 15:45:14 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-02-25 15:07:49 +0000
commit72887eca0d24036def5a9601df5fafae7c572359 (patch)
tree05dcad9a80f154733fae6a30b14e8aa18c84c631 /meta/recipes-devtools/python
parent63e3ca54b602272a3343102ff278759d16d94ddf (diff)
downloadpoky-72887eca0d24036def5a9601df5fafae7c572359.tar.gz
python3-flit-core: inherit pip_install_wheel
Keep the pip install logic, especially --root in one place to ensure that we fix e.g. reproducible issues in one place. (From OE-Core rev: 200ae6b4d54c7235e0a96e2dd4bba1cdd68bd14f) Signed-off-by: Tim Orling <tim.orling@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python')
-rw-r--r--meta/recipes-devtools/python/python3-flit-core_3.6.0.bb13
1 files changed, 5 insertions, 8 deletions
diff --git a/meta/recipes-devtools/python/python3-flit-core_3.6.0.bb b/meta/recipes-devtools/python/python3-flit-core_3.6.0.bb
index 6dfacafd31..a00ea1810e 100644
--- a/meta/recipes-devtools/python/python3-flit-core_3.6.0.bb
+++ b/meta/recipes-devtools/python/python3-flit-core_3.6.0.bb
@@ -10,24 +10,21 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=41eb78fa8a872983a882c694a8305f08"
10 10
11SRC_URI[sha256sum] = "b1464e006df4df4c8eeb37671c0e0ce66e1d04e4a36d91b702f180a25fde3c11" 11SRC_URI[sha256sum] = "b1464e006df4df4c8eeb37671c0e0ce66e1d04e4a36d91b702f180a25fde3c11"
12 12
13inherit python3native python3-dir pypi setuptools3-base 13inherit pip_install_wheel python3native python3-dir pypi setuptools3-base
14 14
15DEPENDS:append:class-target = " python3-pip-native" 15DEPENDS:remove:class-native = " python3-pip-native"
16DEPENDS:append:class-native = " unzip-native" 16DEPENDS:append:class-native = " unzip-native"
17 17
18# We need the full flit tarball 18# We need the full flit tarball
19PYPI_PACKAGE = "flit" 19PYPI_PACKAGE = "flit"
20 20
21PIP_INSTALL_PACKAGE = "flit_core"
22PIP_INSTALL_DIST_PATH = "${S}/flit_core/dist"
23
21do_compile () { 24do_compile () {
22 nativepython3 flit_core/build_dists.py 25 nativepython3 flit_core/build_dists.py
23} 26}
24 27
25do_install () {
26 install -d ${D}${PYTHON_SITEPACKAGES_DIR}
27 PYTHONPATH=${D}${PYTHON_SITEPACKAGES_DIR} \
28 nativepython3 -m pip install -vvvv --no-deps --no-index --target ${D}${PYTHON_SITEPACKAGES_DIR} ./flit_core/dist/flit_core-${PV}-py3-none-any.whl
29}
30
31do_install:class-native () { 28do_install:class-native () {
32 install -d ${D}${PYTHON_SITEPACKAGES_DIR} 29 install -d ${D}${PYTHON_SITEPACKAGES_DIR}
33 unzip -d ${D}${PYTHON_SITEPACKAGES_DIR} ./flit_core/dist/flit_core-${PV}-py3-none-any.whl 30 unzip -d ${D}${PYTHON_SITEPACKAGES_DIR} ./flit_core/dist/flit_core-${PV}-py3-none-any.whl