summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rules/host-system-python.in3
-rw-r--r--rules/host-system-python.make6
2 files changed, 9 insertions, 0 deletions
diff --git a/rules/host-system-python.in b/rules/host-system-python.in
index 064f3e042..300b078e7 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 6edccab81..84be5b2dd 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)