python3-smbus: fix wheel build Recipe does not inherit pypi nor would PN be a good guess for the wheel name so set PIP_INSTALL_PACKAGE appropriately. PYPA_WHEEL doesn't respect SETUPTOOLS_SETUP_PATH so set PYPA_WHEEL appropriately.
PATCH 1/1 python3-smbus: fix wheel build Recipe does not inherit pypi nor would PN be a good guess for the wheel name so set PIP_INSTALL_PACKAGE appropriately. PYPA_WHEEL doesn't respect SETUPTOOLS_SETUP_PATH so set PYPA_WHEEL appropriately.
--- meta-python/recipes-devtools/python/python3-smbus_4.3.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-smbus_4.3.bb +2 -0
@@ -13,4 +13,6 @@ S = "${WORKDIR}/i2c-tools-${PV}" inherit setuptools3 +PIP_INSTALL_PACKAGE = "smbus" +PYPA_WHEEL = "${S}/py-smbus/dist/smbus-*-*.whl" SETUPTOOLS_SETUP_PATH = "${S}/py-smbus"
Signature · 1 line
2.30.2
Please shorten the "short log" (the subject line)
Quoted 11 lines · Matthias Klein
Signed-off-by Matthias Klein <[email protected]>--- meta-python/recipes-devtools/python/python3-smbus_4.3.bb | 2 ++ 1 file changed, 2 insertions(+)meta-python/recipes-devtools/python/python3-smbus_4.3.bb +0
-0
meta-python/recipes-devtools/python/python3-smbus_4.3.bb S = "${WORKDIR}/i2c-tools-${PV}" · line 18
Quoted 6 lines
meta-python/recipes-devtools/python/python3-smbus_4.3.bb +2
-0@@ -13,4 +13,6 @@ S = "${WORKDIR}/i2c-tools-${PV}" inherit setuptools3 +PIP_INSTALL_PACKAGE = "smbus" +PYPA_WHEEL = "${S}/py-smbus/dist/smbus-*-*.whl"
You could use:PYPA_WHEEL = "${SETUPTOOOLS_SETUP_PATH}/dist/smbus-*-*.whl"
We could have usedPIP_INSTALL_DIST_PATH = "${SETUPTOOLS_SETUP_PATH}/dist" but there is a problem with the version here.
The PV of the recipe is for the version of the i2c-tools tarball, but the actual version of py-smbus as picked up by the uptream wheel tooling is 1.1.
So no matter what, this recipe is a special corner case. As rburton has said "bitbake is not psychic".
Also, you might consider using python3-smbus2 (
https://layers.openembedded.org/layerindex/recipe/120644/ ) which is not 10 years old without any updates.
SETUPTOOLS_SETUP_PATH = "${S}/py-smbus"
Quoted 15 lines
--
2.30.2-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#95580):
https://lists.openembedded.org/g/openembedded-devel/message/95580
Mute This Topic: https://lists.openembedded.org/mt/89452706/924729
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-