From: Lucas Stach <l.stach@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 1/5] host-system-python: add check for six and numpy modules
Date: Tue, 6 Jun 2017 16:37:01 +0200 [thread overview]
Message-ID: <20170606143705.5219-1-l.stach@pengutronix.de> (raw)
Signed-off-by: Lucas Stach <l.stach@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
next reply other threads:[~2017-06-06 14:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-06 14:37 Lucas Stach [this message]
2017-06-06 14:37 ` [ptxdist] [PATCH 2/5] waffle: new package Lucas Stach
2017-06-06 14:37 ` [ptxdist] [PATCH 3/5] python3-six: " Lucas Stach
2017-06-07 9:25 ` Roland Hieber
2017-06-06 14:37 ` [ptxdist] [PATCH 4/5] python3-mako: " Lucas Stach
2017-06-06 14:37 ` [ptxdist] [PATCH 5/5] piglit: " Lucas Stach
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=20170606143705.5219-1-l.stach@pengutronix.de \
--to=l.stach@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