]> git.proxmox.com Git - qemu.git/blobdiff - configure
Merge remote-tracking branch 'stefanha/tracing' into staging
[qemu.git] / configure
index c37fc5ba4f802ad1d50ba0b800020b2ead8b4c6a..0111774cb05a93f8aeead3f33a8ee0b82f4d512e 100755 (executable)
--- a/configure
+++ b/configure
@@ -1239,9 +1239,10 @@ fi
 
 # Note that if the Python conditional here evaluates True we will exit
 # with status 1 which is a shell 'false' value.
-if ! "$python" -c 'import sys; sys.exit(sys.version_info[0] >= 3)'; then
-  echo "Python 2 required but '$python' is version 3 or better."
-  echo "Use --python=/path/to/python to specify a Python 2."
+if ! "$python" -c 'import sys; sys.exit(sys.version_info < (2,4) or sys.version_info >= (3,))'; then
+  echo "Cannot use '$python', Python 2.4 or later is required."
+  echo "Note that Python 3 or later is not yet supported."
+  echo "Use --python=/path/to/python to specify a supported Python."
   exit 1
 fi