Skip to contentSkip to conversation

libiio: point PYPA_WHEEL to custom location

PATCH In review [email protected] 2 participants 4 messages Mar 6, 2022 – Mar 8, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libiio: point PYPA_WHEEL to custom location

From: Sam Van Den Berge <[email protected]>

This fixes the installation of the python bindings of libiio.

---
 meta-oe/recipes-support/libiio/libiio_git.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-oe/recipes-support/libiio/libiio_git.bb +3 -0
index f33fc0c1c..19753a13b 100644
@@ -15,6 +15,9 @@ UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
 S = "${WORKDIR}/git"
 
 SETUPTOOLS_SETUP_PATH ?= "${B}/bindings/python/"
+PIP_INSTALL_PACKAGE = "libiio"
+PIP_INSTALL_DIST_PATH = "${B}/bindings/python/dist/"
+PYPA_WHEEL = "${PIP_INSTALL_DIST_PATH}/${PIP_INSTALL_PACKAGE}-0.21-*.whl"
 
 DEPENDS = " \
     flex-native bison-native libaio \
Signature · 1 line
2.25.1
#1 lore raw

Thanks for fixing this

Quoted 15 lines · Sam Van Den Berge

From: Sam Van Den Berge <[email protected]>

This fixes the installation of the python bindings of libiio.

---
 meta-oe/recipes-support/libiio/libiio_git.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-oe/recipes-support/libiio/libiio_git.bb +0 -0
index f33fc0c1c..19753a13b 100644

meta-oe/recipes-support/libiio/libiio_git.bb UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)" · line 20

Quoted 6 lines
meta-oe/recipes-support/libiio/libiio_git.bb +3 -0
@@ -15,6 +15,9 @@ UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
 S = "${WORKDIR}/git"
 
 SETUPTOOLS_SETUP_PATH ?= "${B}/bindings/python/"
+PIP_INSTALL_PACKAGE = "libiio"
+PIP_INSTALL_DIST_PATH = "${B}/bindings/python/dist/"
+PYPA_WHEEL = "${PIP_INSTALL_DIST_PATH}/${PIP_INSTALL_PACKAGE}-0.21-*.whl"

perhaps we do not need to set PYPA_WHEEL perhaps. I am also wondering why its not failing in
oe world builds. Can you check it again with latest master-next of both core and meta-oe

Quoted 15 lines
meta-oe/recipes-support/libiio/libiio_git.bb +0 -1
 DEPENDS = " \
     flex-native bison-native libaio \
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#95810): https://lists.openembedded.org/g/openembedded-devel/message/95810
Mute This Topic: https://lists.openembedded.org/mt/89585637/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#2 lore raw
Quoted 21 lines · Khem Raj

Thanks for fixing this

Quoted 17 lines · Sam Van Den Berge

From: Sam Van Den Berge <[email protected]>

This fixes the installation of the python bindings of libiio.

---
 meta-oe/recipes-support/libiio/libiio_git.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-oe/recipes-support/libiio/libiio_git.bb +0 -0
index f33fc0c1c..19753a13b 100644
@@ -15,6 +15,9 @@ UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
 S = "${WORKDIR}/git"
 
Quoted 10 lines

meta-oe/recipes-support/libiio/libiio_git.bb UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)" · line 20

Quoted 4 lines
meta-oe/recipes-support/libiio/libiio_git.bb +3 -0
 SETUPTOOLS_SETUP_PATH ?= "${B}/bindings/python/"
+PIP_INSTALL_PACKAGE = "libiio"
+PIP_INSTALL_DIST_PATH = "${B}/bindings/python/dist/"
+PYPA_WHEEL = "${PIP_INSTALL_DIST_PATH}/${PIP_INSTALL_PACKAGE}-0.21-*.whl"

perhaps we do not need to set PYPA_WHEEL perhaps. I am also wondering why its not failing in
oe world builds. Can you check it again with latest master-next of both core and meta-oe

Thanks for the hint.

Tried today with latest master and it worked without my patch. I guess commit 6f2d85a7b7d9 in oe-core fixes some things so this patch can be dropped.

Quoted 15 lines
Quoted 15 lines
meta-oe/recipes-support/libiio/libiio_git.bb +0 -1
 DEPENDS = " \
     flex-native bison-native libaio \
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#95810): https://lists.openembedded.org/g/openembedded-devel/message/95810
Mute This Topic: https://lists.openembedded.org/mt/89585637/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw

Ok, thanks.

Quoted 54 lines · Sam Van Den Berge
Quoted 21 lines · Khem Raj

Thanks for fixing this

Quoted 17 lines · Sam Van Den Berge

From: Sam Van Den Berge <[email protected]>

This fixes the installation of the python bindings of libiio.

---
 meta-oe/recipes-support/libiio/libiio_git.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-oe/recipes-support/libiio/libiio_git.bb +0 -0
index f33fc0c1c..19753a13b 100644
@@ -15,6 +15,9 @@ UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)"
 S = "${WORKDIR}/git"
 
Quoted 10 lines

meta-oe/recipes-support/libiio/libiio_git.bb UPSTREAM_CHECK_GITTAGREGEX = "v(?P<pver>\d+(\.\d+)+)" · line 20

Quoted 4 lines
meta-oe/recipes-support/libiio/libiio_git.bb +3 -0
 SETUPTOOLS_SETUP_PATH ?= "${B}/bindings/python/"
+PIP_INSTALL_PACKAGE = "libiio"
+PIP_INSTALL_DIST_PATH = "${B}/bindings/python/dist/"
+PYPA_WHEEL = "${PIP_INSTALL_DIST_PATH}/${PIP_INSTALL_PACKAGE}-0.21-*.whl"

perhaps we do not need to set PYPA_WHEEL perhaps. I am also wondering why its not failing in
oe world builds. Can you check it again with latest master-next of both core and meta-oe

Thanks for the hint.

Tried today with latest master and it worked without my patch. I guess commit 6f2d85a7b7d9 in oe-core fixes some things so this patch can be dropped.

Quoted 15 lines
Quoted 15 lines
meta-oe/recipes-support/libiio/libiio_git.bb +0 -1
 DEPENDS = " \
     flex-native bison-native libaio \
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#95810): https://lists.openembedded.org/g/openembedded-devel/message/95810
Mute This Topic: https://lists.openembedded.org/mt/89585637/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-