package/libiio: set PYTHON_EXECUTABLE
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> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
parent
48f7900993
commit
f384de4f4e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user