configure: fix python major version check on python 2.6

Python 2.6 doesn't use a named tuple for the version info,
instead use the index of the major version which works
on Python 2.6 upwards.
pull/4292/head
Jason Ish 5 years ago
parent a3cdef2b4d
commit c44f82cf4c

@ -124,7 +124,7 @@
# Get the Python major version. This is only for information
# messages displayed during configure.
if test "x$HAVE_PYTHON" != "xno"; then
pymv="$($HAVE_PYTHON -c 'import sys; print(sys.version_info.major);')"
pymv="$($HAVE_PYTHON -c 'import sys; print(sys.version_info[[0]]);')"
fi
# Check for python-distutils (setup).

Loading…
Cancel
Save