Skip to contentSkip to conversation

python3-scons: remove PIP_INSTALL_DIST_PATH

PATCH New Ross Burton 1 participant 2 messages Mar 8, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 python3-scons: remove PIP_INSTALL_DIST_PATH

The default is good now, so remove this.

---
 meta/recipes-devtools/python/python3-scons_4.3.0.bb | 1 -
 1 file changed, 1 deletion(-)
meta/recipes-devtools/python/python3-scons_4.3.0.bb +0 -1
index cfb075f65f..624f974805 100644
@@ -8,7 +8,6 @@ SRC_URI += " file://0001-Fix-man-page-installation.patch"
 SRC_URI[sha256sum] = "d47081587e3675cc168f1f54f0d74a69b328a2fc90ec4feb85f728677419b879"
 
 PYPI_PACKAGE = "SCons"
-PIP_INSTALL_DIST_PATH = "${B}/build/dist"
 
 inherit pypi setuptools3
 
Signature · 1 line
2.25.1
#1 lore raw

PATCH 2/2 pip_install_wheel: generate the wheels in directory we control outside of S

Set the wheel distribution location, PIP_INSTALL_DIST_PATH, to a directory under WORKDIR to enhance out-of-tree builds.

---
 meta/classes/pip_install_wheel.bbclass | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
meta/classes/pip_install_wheel.bbclass +6 -1
index febcc8e445..954a6b750f 100644
@@ -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 = "\
Signature · 1 line
2.25.1