[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 3/8] configure: Require python3 >= 3.5
From: |
Eduardo Habkost |
Subject: |
[Qemu-devel] [PULL 3/8] configure: Require python3 >= 3.5 |
Date: |
Fri, 7 Jun 2019 18:15:39 -0300 |
The oldest python3 version in distros that will be supported by
QEMU 4.1 is 3.5.3 (the one in Debian Stretch). Error out if
running python3 < 3.5.
We have a .travis.yml job configured to use Python 3.4. Change
it to use Python 3.5.
Signed-off-by: Eduardo Habkost <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Thomas Huth <address@hidden>
Signed-off-by: Eduardo Habkost <address@hidden>
---
configure | 5 +++--
.travis.yml | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/configure b/configure
index dcc732ff1e..9dc960824f 100755
--- a/configure
+++ b/configure
@@ -1852,8 +1852,9 @@ 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 < (2,7))'; then
- error_exit "Cannot use '$python', Python 2 >= 2.7 or Python 3 is required." \
+if ! $python -c 'import sys; sys.exit(sys.version_info < (2,7) or \
+ (3,0) <= sys.version_info < (3,5))'; then
+ error_exit "Cannot use '$python', Python 2 >= 2.7 or Python 3 >= 3.5 is
required." \
"Use --python=/path/to/python to specify a supported Python."
fi
diff --git a/.travis.yml b/.travis.yml
index b053a836a3..75e017a5cf 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -212,7 +212,7 @@ matrix:
- CONFIG="--target-list=x86_64-softmmu"
language: python
python:
- - "3.4"
+ - "3.5"
- env:
--
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 <=
- [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, 2019/06/07
- [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