diff options
| author | Tim Orling <ticotimo@gmail.com> | 2022-02-24 15:45:14 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-02-25 15:07:49 +0000 |
| commit | 72887eca0d24036def5a9601df5fafae7c572359 (patch) | |
| tree | 05dcad9a80f154733fae6a30b14e8aa18c84c631 /meta/recipes-devtools/python | |
| parent | 63e3ca54b602272a3343102ff278759d16d94ddf (diff) | |
| download | poky-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.bb | 13 |
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 | ||
| 11 | SRC_URI[sha256sum] = "b1464e006df4df4c8eeb37671c0e0ce66e1d04e4a36d91b702f180a25fde3c11" | 11 | SRC_URI[sha256sum] = "b1464e006df4df4c8eeb37671c0e0ce66e1d04e4a36d91b702f180a25fde3c11" |
| 12 | 12 | ||
| 13 | inherit python3native python3-dir pypi setuptools3-base | 13 | inherit pip_install_wheel python3native python3-dir pypi setuptools3-base |
| 14 | 14 | ||
| 15 | DEPENDS:append:class-target = " python3-pip-native" | 15 | DEPENDS:remove:class-native = " python3-pip-native" |
| 16 | DEPENDS:append:class-native = " unzip-native" | 16 | DEPENDS:append:class-native = " unzip-native" |
| 17 | 17 | ||
| 18 | # We need the full flit tarball | 18 | # We need the full flit tarball |
| 19 | PYPI_PACKAGE = "flit" | 19 | PYPI_PACKAGE = "flit" |
| 20 | 20 | ||
| 21 | PIP_INSTALL_PACKAGE = "flit_core" | ||
| 22 | PIP_INSTALL_DIST_PATH = "${S}/flit_core/dist" | ||
| 23 | |||
| 21 | do_compile () { | 24 | do_compile () { |
| 22 | nativepython3 flit_core/build_dists.py | 25 | nativepython3 flit_core/build_dists.py |
| 23 | } | 26 | } |
| 24 | 27 | ||
| 25 | do_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 | |||
| 31 | do_install:class-native () { | 28 | do_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 |
