[meta-python] python3-xlrd: fix wheel build

Message ID 20220226035500.1388028-1-tim.orling@konsulko.com
State New
Headers show
Series [meta-python] python3-xlrd: fix wheel build | expand

Commit Message

Tim Orling Feb. 26, 2022, 3:55 a.m. UTC
Recipe does not inherit pypi nor would PN resolve to a useful name for
the wheel. Set PIP_INSTALL_PACKAGE appropriately.

Recipe builds wheel in ${S}/dist so set PIP_INSTALL_DIST_PATH
appropriately.

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
---
 meta-python/recipes-devtools/python/python3-xlrd_2.0.1.bb | 2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/meta-python/recipes-devtools/python/python3-xlrd_2.0.1.bb b/meta-python/recipes-devtools/python/python3-xlrd_2.0.1.bb
index bd6853e747..da0dc26715 100644
--- a/meta-python/recipes-devtools/python/python3-xlrd_2.0.1.bb
+++ b/meta-python/recipes-devtools/python/python3-xlrd_2.0.1.bb
@@ -17,6 +17,8 @@  SRCREV = "b8d573e11ec149da695d695c81a156232b89a949"
 S = "${WORKDIR}/git"
 
 inherit ptest setuptools3
+PIP_INSTALL_PACKAGE = "xlrd"
+PIP_INSTALL_DIST_PATH = "${S}/dist"
 
 RDEPENDS:${PN} += "${PYTHON_PN}-compression ${PYTHON_PN}-io ${PYTHON_PN}-pprint ${PYTHON_PN}-shell"