summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/pip_install_wheel.bbclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/classes/pip_install_wheel.bbclass b/meta/classes/pip_install_wheel.bbclass
index febcc8e4451..954a6b750f7 100644
--- a/meta/classes/pip_install_wheel.bbclass
+++ b/meta/classes/pip_install_wheel.bbclass
@@ -7,7 +7,12 @@ def guess_pip_install_package_name(d):
return name.replace('-', '_')
PIP_INSTALL_PACKAGE ?= "${@guess_pip_install_package_name(d)}"
-PIP_INSTALL_DIST_PATH ?= "${@d.getVar('SETUPTOOLS_SETUP_PATH') or d.getVar('B')}/dist"
+
+# The directory where wheels should be written too. Build classes
+# will ideally [cleandirs] this but we don't do that here in case
+# a recipe wants to install prebuilt wheels.
+PIP_INSTALL_DIST_PATH ?= "${WORKDIR}/dist"
+
PYPA_WHEEL ??= "${PIP_INSTALL_DIST_PATH}/${PIP_INSTALL_PACKAGE}-*-*.whl"
PIP_INSTALL_ARGS = "\