Deprecate Python 2 support

Python 2 will reach end of life in January 1 2020. Declare it as
deprecated.

Backports commit e5abf59eae5990296c243202f95f801495c52e76 from qemu
This commit is contained in:
Eduardo Habkost 2019-08-08 17:16:17 -04:00 committed by Lioncash
parent 14c6ed2cca
commit 0bf3c3755a
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7

8
qemu/configure vendored
View File

@ -1472,6 +1472,14 @@ if test "$supported_os" = "no"; then
echo "us upstream at qemu-devel@nongnu.org."
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 < (3,0))'; then
echo
echo "warning: Python 2 support is deprecated" >&2
echo "warning: Python 3 will be required for building future versions of QEMU" >&2
fi
config_host_mak="config-host.mak"
echo "# Automatically generated by configure - do not modify" > $config_host_mak