mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH 1/2] host-system-python3: Add flags for ply, pyyaml, jinja2
@ 2021-03-22 13:48 Marian Cichy
  2021-03-22 13:48 ` [ptxdist] [PATCH 2/2] libcamera: Add package Marian Cichy
  0 siblings, 1 reply; 4+ messages in thread
From: Marian Cichy @ 2021-03-22 13:48 UTC (permalink / raw)
  To: ptxdist; +Cc: Marian Cichy

These modules are a dependency for libcamera.

Signed-off-by: Marian Cichy <m.cichy@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-request@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-05-03 11:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-22 13:48 [ptxdist] [PATCH 1/2] host-system-python3: Add flags for ply, pyyaml, jinja2 Marian Cichy
2021-03-22 13:48 ` [ptxdist] [PATCH 2/2] libcamera: Add package Marian Cichy
2021-05-03 10:27   ` Marco Felsch
2021-05-03 11:21     ` Marco Felsch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox