python: request version 2.6 or higher

This seems like a reasonable minimum version to require.
Available in RHEL6 (2010) or Ubuntu (2010).

Version 2.7 contains the argparse module so the check could be removed.
The argparse module was introduced in v2.3.5 as an optional module.

http://www.python.org/doc/versions/

Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Gaetan Nadon 2013-11-19 11:59:10 -05:00 committed by Peter Hutterer
parent f15afcb795
commit a6400cd8da

View file

@ -115,7 +115,7 @@ AS_IF([test "x$enable_gcov" != "xno"],
],
)
AM_PATH_PYTHON()
AM_PATH_PYTHON([2.6])
AS_IF([$($PYTHON -c "import argparse")], [:],
AC_MSG_ERROR([python argparse module is missing]))