summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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