From b079d8a56f9283470f365e153e57615b175e42b8 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sun, 6 Oct 2013 21:28:43 +0200 Subject: Make Python detection in configure work with version older than 2.7 --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 0434457..dd4344d 100755 --- a/configure +++ b/configure @@ -569,7 +569,7 @@ if test "$f_python" = NO; then for j in $python_dirs; do if test -x "$j/$i"; then python_found=YES - if test `$j/$i -c "import sys; print sys.version_info.major"` = 2; then + if test `$j/$i -c "import sys; print sys.version_info[0]"` = 2; then python_prog="$j/$i" break 2 fi -- cgit v0.12