These modules are a dependency for libcamera.

Signed-off-by: Marian Cichy <m.ci...@pengutronix.de>
---
 rules/host-system-python3.in   |  9 +++++++++
 rules/host-system-python3.make | 18 ++++++++++++++++++
 2 files changed, 27 insertions(+)

diff --git a/rules/host-system-python3.in b/rules/host-system-python3.in
index c6ce3360a..3a0df4307 100644
--- a/rules/host-system-python3.in
+++ b/rules/host-system-python3.in
@@ -20,4 +20,13 @@ config HOST_SYSTEM_PYTHON3_SETUPTOOLS
 config HOST_SYSTEM_PYTHON3_SIX
        bool
 
+config HOST_SYSTEM_PYTHON3_PLY
+       bool
+
+config HOST_SYSTEM_PYTHON3_PYYAML
+       bool
+
+config HOST_SYSTEM_PYTHON3_JINJA2
+       bool
+
 endif
diff --git a/rules/host-system-python3.make b/rules/host-system-python3.make
index 7f97f9349..81c400473 100644
--- a/rules/host-system-python3.make
+++ b/rules/host-system-python3.make
@@ -53,6 +53,24 @@ ifdef PTXCONF_HOST_SYSTEM_PYTHON3_SIX
        @$(SYSTEMPYTHON3) -c 'import six' 2>/dev/null || \
                ptxd_bailout "Python six module not found! \
        Please install python3-six (debian)";
+endif
+ifdef PTXCONF_HOST_SYSTEM_PYTHON3_PLY
+       @echo "Checking for Python ply ..."
+       @$(SYSTEMPYTHON3) -c 'import ply' 2>/dev/null || \
+               ptxd_bailout "Python ply module not found! \
+       Please install python3-ply (debian)";
+endif
+ifdef PTXCONF_HOST_SYSTEM_PYTHON3_JINJA2
+       @echo "Checking for Python jinja2 ..."
+       @$(SYSTEMPYTHON3) -c 'import jinja2' 2>/dev/null || \
+               ptxd_bailout "Python jinja2 module not found! \
+       Please install python3-jinja2 (debian)";
+endif
+ifdef PTXCONF_HOST_SYSTEM_PYTHON3_PYYAML
+       @echo "Checking for Python pyyaml ..."
+       @$(SYSTEMPYTHON3) -c 'import yaml' 2>/dev/null || \
+               ptxd_bailout "Python pyyaml module not found! \
+       Please install python3-yaml (debian)";
 endif
        @$(call touch)
 
-- 
2.29.2


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to 
ptxdist-requ...@pengutronix.de

Reply via email to