From: Marian Cichy <m.cichy@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Marian Cichy <m.cichy@pengutronix.de>
Subject: [ptxdist] [PATCH 1/2] host-system-python3: Add flags for ply, pyyaml, jinja2
Date: Mon, 22 Mar 2021 14:48:41 +0100 [thread overview]
Message-ID: <20210322134842.20388-1-m.cichy@pengutronix.de> (raw)
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
next reply other threads:[~2021-03-22 13:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-22 13:48 Marian Cichy [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210322134842.20388-1-m.cichy@pengutronix.de \
--to=m.cichy@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox