diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-08-07 08:42:17 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-08-08 15:04:35 +0200 |
commit | 7b38bf33a8aefe5a6305bfb15617e5e90995d437 (patch) | |
tree | 934eef378d499e029573586a2e02c79715b4e4ce /rules/host-system-python.make | |
parent | 1bb3033d8881dfc9cf3f7991103950cf074fef64 (diff) | |
download | ptxdist-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.make | 6 |
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) |