[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 2/8] Deprecate Python 2 support
From: |
Eduardo Habkost |
Subject: |
[Qemu-devel] [PULL 2/8] Deprecate Python 2 support |
Date: |
Fri, 7 Jun 2019 18:15:38 -0300 |
Python 2 will reach end of life in January 1 2020. Declare it as
deprecated.
Signed-off-by: Eduardo Habkost <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Thomas Huth <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>
Reviewed-by: Daniel P. Berrangé <address@hidden>
[ehabkost: print "warning:" in lowercase]
Signed-off-by: Eduardo Habkost <address@hidden>
---
configure | 8 ++++++++
qemu-deprecated.texi | 8 ++++++++
2 files changed, 16 insertions(+)
diff --git a/configure b/configure
index b091b82cb3..dcc732ff1e 100755
--- a/configure
+++ b/configure
@@ -6506,6 +6506,14 @@ if test "$supported_os" = "no"; then
echo "us upstream at address@hidden."
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-all-disas.mak
diff --git a/qemu-deprecated.texi b/qemu-deprecated.texi
index 50292d820b..65411c130e 100644
--- a/qemu-deprecated.texi
+++ b/qemu-deprecated.texi
@@ -237,3 +237,11 @@ Note that if you are exposing the export via /dev/nbd0, it
is easier
to just export the entire image and then mount only /dev/nbd0p1 than
it is to reinvoke @command{qemu-nbd -c /dev/nbd0} limited to just a
subset of the image.
+
+@section Build system
+
+@subsection Python 2 support (since 4.1.0)
+
+In the future, QEMU will require Python 3 to be available at
+build time. Support for Python 2 in scripts shipped with QEMU
+is deprecated.
--
2.18.0.rc1.1.g3f1ff2140
- [Qemu-devel] [PULL 0/8] Python queue, 2019-06-07, Eduardo Habkost, 2019/06/07
- [Qemu-devel] [PULL 1/8] tests/boot_linux_console: Let extract_from_deb handle various compressions, Eduardo Habkost, 2019/06/07
- [Qemu-devel] [PULL 4/8] BootLinuxConsoleTest: Do not log empty lines, Eduardo Habkost, 2019/06/07
- [Qemu-devel] [PULL 3/8] configure: Require python3 >= 3.5, Eduardo Habkost, 2019/06/07
- [Qemu-devel] [PULL 5/8] BootLinuxConsoleTest: Test the SmartFusion2 board, Eduardo Habkost, 2019/06/07
- [Qemu-devel] [PULL 2/8] Deprecate Python 2 support,
Eduardo Habkost <=
- [Qemu-devel] [PULL 6/8] BootLinuxConsoleTest: Test nanoMIPS kernels on the I7200 CPU, Eduardo Habkost, 2019/06/07
- [Qemu-devel] [PULL 8/8] travis: Make check-acceptance job more verbose, Eduardo Habkost, 2019/06/07
- [Qemu-devel] [PULL 7/8] BootLinuxConsoleTest: Run kerneltests BusyBox on Malta, Eduardo Habkost, 2019/06/07
- Re: [Qemu-devel] [PULL 0/8] Python queue, 2019-06-07, Peter Maydell, 2019/06/10
- Re: [Qemu-devel] [PULL 0/8] Python queue, 2019-06-07, Eduardo Habkost, 2019/06/10
- Re: [Qemu-devel] [PULL 0/8] Python queue, 2019-06-07, Peter Maydell, 2019/06/10
- [Qemu-devel] Ubuntu Trusty as supported build platform (was Re: [PULL 0/8] Python queue, 2019-06-07), Eduardo Habkost, 2019/06/10
- Re: [Qemu-devel] [PULL 0/8] Python queue, 2019-06-07, Daniel P . Berrangé, 2019/06/10
- Re: [Qemu-devel] [PULL 0/8] Python queue, 2019-06-07, Peter Maydell, 2019/06/10