summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/pip_install_wheel.bbclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes/pip_install_wheel.bbclass b/meta/classes/pip_install_wheel.bbclass
index 8a848c0eba..9f9feda6ee 100644
--- a/meta/classes/pip_install_wheel.bbclass
+++ b/meta/classes/pip_install_wheel.bbclass
@@ -1,6 +1,10 @@
1DEPENDS:append = " python3-pip-native" 1DEPENDS:append = " python3-pip-native"
2 2
3PIP_INSTALL_PACKAGE ?= "${PYPI_PACKAGE}" 3def guess_pip_install_package_name(d):
4 '''https://www.python.org/dev/peps/pep-0491/#escaping-and-unicode'''
5 return (d.getVar('PYPI_PACKAGE') or d.getVar('PN')).replace('-', '_')
6
7PIP_INSTALL_PACKAGE ?= "${@guess_pip_install_package_name(d)}"
4PIP_INSTALL_DIST_PATH ?= "${B}/dist" 8PIP_INSTALL_DIST_PATH ?= "${B}/dist"
5PYPA_WHEEL ??= "${PIP_INSTALL_DIST_PATH}/${PIP_INSTALL_PACKAGE}-${PV}-*.whl" 9PYPA_WHEEL ??= "${PIP_INSTALL_DIST_PATH}/${PIP_INSTALL_PACKAGE}-${PV}-*.whl"
6 10