mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH 1/5] host-system-python: add check for six and numpy modules
@ 2017-06-06 14:37 Lucas Stach
  2017-06-06 14:37 ` [ptxdist] [PATCH 2/5] waffle: new package Lucas Stach
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Lucas Stach @ 2017-06-06 14:37 UTC (permalink / raw)
  To: ptxdist

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

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

end of thread, other threads:[~2017-06-07  9:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-06 14:37 [ptxdist] [PATCH 1/5] host-system-python: add check for six and numpy modules Lucas Stach
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

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