All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-python][PATCH] 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.
@ 2022-02-28 15:29 Matthias Klein
  2022-02-28 15:42 ` [oe] " Tim Orling
  0 siblings, 1 reply; 2+ messages in thread
From: Matthias Klein @ 2022-02-28 15:29 UTC (permalink / raw)
  To: openembedded-devel; +Cc: kweihmann, Matthias Klein

Signed-off-by: Matthias Klein <matthias@extraklein.de>
---
 meta-python/recipes-devtools/python/python3-smbus_4.3.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-python/recipes-devtools/python/python3-smbus_4.3.bb b/meta-python/recipes-devtools/python/python3-smbus_4.3.bb
index ecdff3ada..1a6c99cfc 100644
--- a/meta-python/recipes-devtools/python/python3-smbus_4.3.bb
+++ b/meta-python/recipes-devtools/python/python3-smbus_4.3.bb
@@ -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"
-- 
2.30.2



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [oe] [meta-python][PATCH] 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.
  2022-02-28 15:29 [meta-python][PATCH] 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 Matthias Klein
@ 2022-02-28 15:42 ` Tim Orling
  0 siblings, 0 replies; 2+ messages in thread
From: Tim Orling @ 2022-02-28 15:42 UTC (permalink / raw)
  To: Matthias Klein; +Cc: openembedded-devel, Konrad Weihmann

[-- Attachment #1: Type: text/plain, Size: 1868 bytes --]

Please shorten the "short log" (the subject line)

On Mon, Feb 28, 2022 at 7:30 AM Matthias Klein <matthias@extraklein.de>
wrote:

> Signed-off-by: Matthias Klein <matthias@extraklein.de>
> ---
>  meta-python/recipes-devtools/python/python3-smbus_4.3.bb | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/meta-python/recipes-devtools/python/python3-smbus_4.3.bb
> b/meta-python/recipes-devtools/python/python3-smbus_4.3.bb
> index ecdff3ada..1a6c99cfc 100644
> --- a/meta-python/recipes-devtools/python/python3-smbus_4.3.bb
> +++ b/meta-python/recipes-devtools/python/python3-smbus_4.3.bb
> @@ -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 used
PIP_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"
> --
> 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: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [
> ticotimo@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

[-- Attachment #2: Type: text/html, Size: 3565 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-28 15:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-28 15:29 [meta-python][PATCH] 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 Matthias Klein
2022-02-28 15:42 ` [oe] " Tim Orling

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.