summaryrefslogtreecommitdiffstats
path: root/rules/host-system-python.make
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2014-08-07 08:42:17 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2014-08-08 15:04:35 +0200
commit7b38bf33a8aefe5a6305bfb15617e5e90995d437 (patch)
tree934eef378d499e029573586a2e02c79715b4e4ce /rules/host-system-python.make
parent1bb3033d8881dfc9cf3f7991103950cf074fef64 (diff)
downloadptxdist-7b38bf33a8aefe5a6305bfb15617e5e90995d437.tar.gz
ptxdist-7b38bf33a8aefe5a6305bfb15617e5e90995d437.tar.xz
host-system-python: add option for argparse
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/host-system-python.make')
-rw-r--r--rules/host-system-python.make6
1 files changed, 6 insertions, 0 deletions
diff --git a/rules/host-system-python.make b/rules/host-system-python.make
index 9ada60cf7..6edccab81 100644
--- a/rules/host-system-python.make
+++ b/rules/host-system-python.make
@@ -28,6 +28,12 @@ ifdef PTXCONF_HOST_SYSTEM_PYTHON_XML2
ptxd_bailout "Python libxml2 module not found! \
Please install python-libxml2 (debian)";
endif
+ifdef PTXCONF_HOST_SYSTEM_PYTHON_ARGPARSE
+ @echo "Checking for Python argparse ..."
+ @python -c 'import argparse' 2>/dev/null || \
+ ptxd_bailout "Python argparse module not found! \
+ Please install python-argparse (debian)";
+endif
@echo
@$(call touch)