mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] host-system-python: Add python-bz2 module
@ 2014-12-03 14:38 Markus Pargmann
  2014-12-04 16:30 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Markus Pargmann @ 2014-12-03 14:38 UTC (permalink / raw)
  To: ptxdist; +Cc: Markus Pargmann

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
---
 rules/host-system-python.in   | 3 +++
 rules/host-system-python.make | 6 ++++++
 2 files changed, 9 insertions(+)

diff --git a/rules/host-system-python.in b/rules/host-system-python.in
index 064f3e0422fb..300b078e7f19 100644
--- a/rules/host-system-python.in
+++ b/rules/host-system-python.in
@@ -11,4 +11,7 @@ config HOST_SYSTEM_PYTHON_XML2
 config HOST_SYSTEM_PYTHON_ARGPARSE
 	bool
 
+config HOST_SYSTEM_PYTHON_BZ2
+	bool
+
 endif
diff --git a/rules/host-system-python.make b/rules/host-system-python.make
index 6edccab8132c..84be5b2dde2e 100644
--- a/rules/host-system-python.make
+++ b/rules/host-system-python.make
@@ -34,6 +34,12 @@ ifdef PTXCONF_HOST_SYSTEM_PYTHON_ARGPARSE
 		ptxd_bailout "Python argparse module not found! \
 	Please install python-argparse (debian)";
 endif
+ifdef PTXCONF_HOST_SYSTEM_PYTHON_BZ2
+	@echo "Checking for Python bz2 ..."
+	@python -c 'import bz2' 2>/dev/null || \
+		ptxd_bailout "Python bz2 module not found! \
+	Please install python-bz2";
+endif
 	@echo
 	@$(call touch)
 
-- 
2.1.3


-- 
ptxdist mailing list
ptxdist@pengutronix.de

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

end of thread, other threads:[~2014-12-04 16:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-03 14:38 [ptxdist] [PATCH] host-system-python: Add python-bz2 module Markus Pargmann
2014-12-04 16:30 ` Michael Olbrich

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