python: request version 2.6 or higher
authorGaetan Nadon <memsize@videotron.ca>
Tue, 19 Nov 2013 16:59:10 +0000 (11:59 -0500)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 19 Nov 2013 21:50:22 +0000 (07:50 +1000)
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>
configure.ac

index 9e26bb77a6255e107e1799c4bf72c6bb831546ab..b276ea4254a98bf3355a56671fa77e81e870f250 100644 (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]))