* [Buildroot] [PATCH 1/1] package/libiio: set PYTHON_EXECUTABLE
@ 2022-01-02 17:43 Fabrice Fontaine
2022-01-03 10:52 ` Paul Cercueil
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Fabrice Fontaine @ 2022-01-02 17:43 UTC (permalink / raw)
To: buildroot; +Cc: Paul Cercueil, Fabrice Fontaine
Set PYTHON_EXECUTABLE to avoid the following build failure when
BR2_PACKAGE_PYTHON is enabled but libiio finds python3 without
setuptools on host:
-- Found Python: /usr/bin/python3.5 (found version "3.5.3") found components: Interpreter
-- new
-- Python_EXECUTABLE /usr/bin/python3.5
[...]
Traceback (most recent call last):
File "/home/buildroot/autobuild/instance-0/output-1/build/libiio-0.23/bindings/python/setup.py", line 15, in <module>
from setuptools import setup
ImportError: No module named 'setuptools'
Fixes:
- http://autobuild.buildroot.org/results/d80e56e4ad84c8e7f244cf6d1cb96c116e8eb734
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/libiio/libiio.mk | 2 ++
1 file changed, 2 insertions(+)
diff --git a/package/libiio/libiio.mk b/package/libiio/libiio.mk
index f706298c22..38b2f83e6e 100644
--- a/package/libiio/libiio.mk
+++ b/package/libiio/libiio.mk
@@ -76,8 +76,10 @@ endif
ifeq ($(BR2_PACKAGE_LIBIIO_BINDINGS_PYTHON),y)
ifeq ($(BR2_PACKAGE_PYTHON),y)
LIBIIO_DEPENDENCIES += host-python-setuptools python
+LIBIIO_CONF_OPTS += -DPYTHON_EXECUTABLE=$(HOST_DIR)/bin/python
else ifeq ($(BR2_PACKAGE_PYTHON3),y)
LIBIIO_DEPENDENCIES += host-python3-setuptools python3
+LIBIIO_CONF_OPTS += -DPYTHON_EXECUTABLE=$(HOST_DIR)/bin/python3
endif
LIBIIO_CONF_OPTS += -DPYTHON_BINDINGS=ON
else
--
2.33.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/libiio: set PYTHON_EXECUTABLE
2022-01-02 17:43 [Buildroot] [PATCH 1/1] package/libiio: set PYTHON_EXECUTABLE Fabrice Fontaine
@ 2022-01-03 10:52 ` Paul Cercueil
2022-01-04 17:59 ` Arnout Vandecappelle
2022-01-26 20:09 ` Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: Paul Cercueil @ 2022-01-03 10:52 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: buildroot
Hi Fabrice,
Le dim., janv. 2 2022 at 18:43:29 +0100, Fabrice Fontaine
<fontaine.fabrice@gmail.com> a écrit :
> Set PYTHON_EXECUTABLE to avoid the following build failure when
> BR2_PACKAGE_PYTHON is enabled but libiio finds python3 without
> setuptools on host:
>
> -- Found Python: /usr/bin/python3.5 (found version "3.5.3") found
> components: Interpreter
> -- new
> -- Python_EXECUTABLE /usr/bin/python3.5
>
> [...]
>
> Traceback (most recent call last):
> File
> "/home/buildroot/autobuild/instance-0/output-1/build/libiio-0.23/bindings/python/setup.py",
> line 15, in <module>
> from setuptools import setup
> ImportError: No module named 'setuptools'
>
> Fixes:
> -
> http://autobuild.buildroot.org/results/d80e56e4ad84c8e7f244cf6d1cb96c116e8eb734
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Acked-by: Paul Cercueil <paul@crapouillou.net>
Cheers,
-Paul
> ---
> package/libiio/libiio.mk | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/package/libiio/libiio.mk b/package/libiio/libiio.mk
> index f706298c22..38b2f83e6e 100644
> --- a/package/libiio/libiio.mk
> +++ b/package/libiio/libiio.mk
> @@ -76,8 +76,10 @@ endif
> ifeq ($(BR2_PACKAGE_LIBIIO_BINDINGS_PYTHON),y)
> ifeq ($(BR2_PACKAGE_PYTHON),y)
> LIBIIO_DEPENDENCIES += host-python-setuptools python
> +LIBIIO_CONF_OPTS += -DPYTHON_EXECUTABLE=$(HOST_DIR)/bin/python
> else ifeq ($(BR2_PACKAGE_PYTHON3),y)
> LIBIIO_DEPENDENCIES += host-python3-setuptools python3
> +LIBIIO_CONF_OPTS += -DPYTHON_EXECUTABLE=$(HOST_DIR)/bin/python3
> endif
> LIBIIO_CONF_OPTS += -DPYTHON_BINDINGS=ON
> else
> --
> 2.33.0
>
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/libiio: set PYTHON_EXECUTABLE
2022-01-02 17:43 [Buildroot] [PATCH 1/1] package/libiio: set PYTHON_EXECUTABLE Fabrice Fontaine
2022-01-03 10:52 ` Paul Cercueil
@ 2022-01-04 17:59 ` Arnout Vandecappelle
2022-01-26 20:09 ` Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: Arnout Vandecappelle @ 2022-01-04 17:59 UTC (permalink / raw)
To: Fabrice Fontaine, buildroot; +Cc: Paul Cercueil
On 02/01/2022 18:43, Fabrice Fontaine wrote:
> Set PYTHON_EXECUTABLE to avoid the following build failure when
> BR2_PACKAGE_PYTHON is enabled but libiio finds python3 without
> setuptools on host:
>
> -- Found Python: /usr/bin/python3.5 (found version "3.5.3") found components: Interpreter
> -- new
> -- Python_EXECUTABLE /usr/bin/python3.5
>
> [...]
>
> Traceback (most recent call last):
> File "/home/buildroot/autobuild/instance-0/output-1/build/libiio-0.23/bindings/python/setup.py", line 15, in <module>
> from setuptools import setup
> ImportError: No module named 'setuptools'
>
> Fixes:
> - http://autobuild.buildroot.org/results/d80e56e4ad84c8e7f244cf6d1cb96c116e8eb734
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Applied to master, thanks.
Regards,
Arnout
> ---
> package/libiio/libiio.mk | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/package/libiio/libiio.mk b/package/libiio/libiio.mk
> index f706298c22..38b2f83e6e 100644
> --- a/package/libiio/libiio.mk
> +++ b/package/libiio/libiio.mk
> @@ -76,8 +76,10 @@ endif
> ifeq ($(BR2_PACKAGE_LIBIIO_BINDINGS_PYTHON),y)
> ifeq ($(BR2_PACKAGE_PYTHON),y)
> LIBIIO_DEPENDENCIES += host-python-setuptools python
> +LIBIIO_CONF_OPTS += -DPYTHON_EXECUTABLE=$(HOST_DIR)/bin/python
> else ifeq ($(BR2_PACKAGE_PYTHON3),y)
> LIBIIO_DEPENDENCIES += host-python3-setuptools python3
> +LIBIIO_CONF_OPTS += -DPYTHON_EXECUTABLE=$(HOST_DIR)/bin/python3
> endif
> LIBIIO_CONF_OPTS += -DPYTHON_BINDINGS=ON
> else
>
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/libiio: set PYTHON_EXECUTABLE
2022-01-02 17:43 [Buildroot] [PATCH 1/1] package/libiio: set PYTHON_EXECUTABLE Fabrice Fontaine
2022-01-03 10:52 ` Paul Cercueil
2022-01-04 17:59 ` Arnout Vandecappelle
@ 2022-01-26 20:09 ` Peter Korsgaard
2 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2022-01-26 20:09 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: Paul Cercueil, buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> Set PYTHON_EXECUTABLE to avoid the following build failure when
> BR2_PACKAGE_PYTHON is enabled but libiio finds python3 without
> setuptools on host:
> -- Found Python: /usr/bin/python3.5 (found version "3.5.3") found components: Interpreter
> -- new
> -- Python_EXECUTABLE /usr/bin/python3.5
> [...]
> Traceback (most recent call last):
> File "/home/buildroot/autobuild/instance-0/output-1/build/libiio-0.23/bindings/python/setup.py", line 15, in <module>
> from setuptools import setup
> ImportError: No module named 'setuptools'
> Fixes:
> - http://autobuild.buildroot.org/results/d80e56e4ad84c8e7f244cf6d1cb96c116e8eb734
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed to 2021.11.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-01-26 20:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-02 17:43 [Buildroot] [PATCH 1/1] package/libiio: set PYTHON_EXECUTABLE Fabrice Fontaine
2022-01-03 10:52 ` Paul Cercueil
2022-01-04 17:59 ` Arnout Vandecappelle
2022-01-26 20:09 ` Peter Korsgaard
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.