configure: allow use of python 3

Backports commit c21965a0c8b979c306e927f158257e5b0fa3a1f9 from qemu
This commit is contained in:
Daniel P. Berrange 2018-03-06 11:33:55 -05:00 committed by Lioncash
parent 42b238b45b
commit a78892c2f5
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

5
qemu/configure vendored
View file

@ -555,9 +555,8 @@ fi
# Note that if the Python conditional here evaluates True we will exit # Note that if the Python conditional here evaluates True we will exit
# with status 1 which is a shell 'false' value. # with status 1 which is a shell 'false' value.
if ! $python -c 'import sys; sys.exit(sys.version_info < (2,4) or sys.version_info >= (3,))'; then if ! $python -c 'import sys; sys.exit(sys.version_info < (2,6))'; then
error_exit "Cannot use '$python', Python 2.4 or later is required." \ error_exit "Cannot use '$python', Python 2 >= 2.6 or Python 3 is required." \
"Note that Python 3 or later is not yet supported." \
"Use --python=/path/to/python to specify a supported Python." "Use --python=/path/to/python to specify a supported Python."
fi fi