Signed-off-by: Lucas Stach <l.st...@pengutronix.de>
---
 rules/host-system-python.in   |  6 ++++++
 rules/host-system-python.make | 12 ++++++++++++
 2 files changed, 18 insertions(+)

diff --git a/rules/host-system-python.in b/rules/host-system-python.in
index 61fdbc62be8f..13ffed6c921b 100644
--- a/rules/host-system-python.in
+++ b/rules/host-system-python.in
@@ -17,4 +17,10 @@ config HOST_SYSTEM_PYTHON_BZ2
 config HOST_SYSTEM_PYTHON_MAKO
        bool
 
+config HOST_SYSTEM_PYTHON_SIX
+       bool
+
+config HOST_SYSTEM_PYTHON_NUMPY
+       bool
+
 endif
diff --git a/rules/host-system-python.make b/rules/host-system-python.make
index a52117653ef0..44d5610ee499 100644
--- a/rules/host-system-python.make
+++ b/rules/host-system-python.make
@@ -47,6 +47,18 @@ ifdef PTXCONF_HOST_SYSTEM_PYTHON_MAKO
                ptxd_bailout "Python mako module not found! \
        Please install python-mako (debian)";
 endif
+ifdef PTXCONF_HOST_SYSTEM_PYTHON_SIX
+       @echo "Checking for Python Six ..."
+       @python -c 'import six' 2>/dev/null || \
+               ptxd_bailout "Python six module not found! \
+       Please install python-six (debian)";
+endif
+ifdef PTXCONF_HOST_SYSTEM_PYTHON_NUMPY
+       @echo "Checking for Python Numpy ..."
+       @python -c 'import numpy' 2>/dev/null || \
+               ptxd_bailout "Python numpy module not found! \
+       Please install python-numpy (debian)";
+endif
        @echo
        @$(call touch)
 
-- 
2.11.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to