Skip to contentSkip to conversation

package/libiio: add binding for python3

PATCH New Béla Becker 2 participants 2 messages Oct 5, 2017 – Oct 7, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/libiio: add binding for python3

Python3 support was added to libiio in version 0.10.
This commit adds the option to compile libiio bindings if python3 was selected instead of python.

---
 package/libiio/Config.in | 2 +-
 package/libiio/libiio.mk | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)
package/libiio/Config.in +1 -1
index 75f6f3a847..baa163126a 100644
@@ -96,7 +96,7 @@ config BR2_PACKAGE_LIBIIO_BINDINGS_CSHARP
 
 config BR2_PACKAGE_LIBIIO_BINDINGS_PYTHON
 	bool "Install Python bindings"
-	depends on BR2_PACKAGE_PYTHON
+	depends on BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3
 	help
 	  Install the Python bindings.
 
package/libiio/libiio.mk +4 -0
index d066ae0314..0b13064085 100644
@@ -60,7 +60,11 @@ LIBIIO_DEPENDENCIES += avahi
 endif
 
 ifeq ($(BR2_PACKAGE_LIBIIO_BINDINGS_PYTHON),y)
+ifeq ($(BR2_PACKAGE_PYTHON),y)
 LIBIIO_DEPENDENCIES += python
+else ifeq ($(BR2_PACKAGE_PYTHON3),y)
+LIBIIO_DEPENDENCIES += python3
+endif
 LIBIIO_CONF_OPTS += -DPYTHON_BINDINGS=ON
 else
 LIBIIO_CONF_OPTS += -DPYTHON_BINDINGS=OFF
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 package/libiio: add binding for python3

Hello,

Quoted 9 lines · B?la Becker

Python3 support was added to libiio in version 0.10.
This commit adds the option to compile libiio bindings if python3 was selected instead of python.

---
 package/libiio/Config.in | 2 +-
 package/libiio/libiio.mk | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com