All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [git commit] package/libiio: add support for Python 3.x bindings
@ 2017-10-07 21:13 Thomas Petazzoni
  0 siblings, 0 replies; only message in thread
From: Thomas Petazzoni @ 2017-10-07 21:13 UTC (permalink / raw)
  To: buildroot

commit: https://git.buildroot.net/buildroot/commit/?id=6c4b027f9da4f4432fc79b8eefe61c5c33b9ae8a
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

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.

Signed-off-by: B??la Becker <bela.becker@pcbdesign.hu>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/libiio/Config.in | 2 +-
 package/libiio/libiio.mk | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/package/libiio/Config.in b/package/libiio/Config.in
index 75f6f3a..baa1631 100644
--- a/package/libiio/Config.in
+++ b/package/libiio/Config.in
@@ -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.
 
diff --git a/package/libiio/libiio.mk b/package/libiio/libiio.mk
index d066ae0..0b13064 100644
--- a/package/libiio/libiio.mk
+++ b/package/libiio/libiio.mk
@@ -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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-10-07 21:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-07 21:13 [Buildroot] [git commit] package/libiio: add support for Python 3.x bindings Thomas Petazzoni

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.