]> code.ossystems Code Review - openembedded-core.git/commitdiff
pip_install_wheel: generate the wheels in directory we control outside of S
authorRoss Burton <ross@burtonini.com>
Tue, 8 Mar 2022 19:31:28 +0000 (19:31 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 10 Mar 2022 13:06:22 +0000 (13:06 +0000)
Set the wheel distribution location, PIP_INSTALL_DIST_PATH, to a
directory under WORKDIR to enhance out-of-tree builds.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/pip_install_wheel.bbclass

index febcc8e445131e7024b032d6e08e1b547adb8e4e..954a6b750f7ca15ad323425cfa6b311ae74ea068 100644 (file)
@@ -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 = "\