From nobody Thu Nov 6 03:26:09 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1539407073659369.9124746632739; Fri, 12 Oct 2018 22:04:33 -0700 (PDT) Received: from localhost ([::1]:43701 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gBC6G-0005PZ-BN for importer@patchew.org; Sat, 13 Oct 2018 01:04:28 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45122) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gBC4e-0004Xb-LI for qemu-devel@nongnu.org; Sat, 13 Oct 2018 01:02:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gBC4d-00015E-SB for qemu-devel@nongnu.org; Sat, 13 Oct 2018 01:02:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53058) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gBC4U-0000kN-7L; Sat, 13 Oct 2018 01:02:38 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 418FC88E61; Sat, 13 Oct 2018 05:02:35 +0000 (UTC) Received: from localhost (ovpn-117-52.phx2.redhat.com [10.3.117.52]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0BA7810021B1; Sat, 13 Oct 2018 05:02:28 +0000 (UTC) From: Eduardo Habkost To: Peter Maydell , qemu-devel@nongnu.org, Cleber Rosa Date: Sat, 13 Oct 2018 02:02:27 -0300 Message-Id: <20181013050227.17022-1-ehabkost@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Sat, 13 Oct 2018 05:02:35 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [RFC] Require Python 3 for building QEMU X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , Fam Zheng , qemu-block@nongnu.org, Markus Armbruster , Max Reitz , Stefan Hajnoczi , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RDMRC_1 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Eduardo Habkost --- I'd like to do this in QEMU 3.1. I think it's time to drop support for old systems that have only Python 2. We still have a few scripts that are not required for building QEMU that still work only with Python 2 (iotests being the most relevant set). Requiring Python 3 for building QEMU won't prevent people from using those scripts with Python 2 until they are finally ported. --- configure | 8 ++++---- .travis.yml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/configure b/configure index f89d293585..43b45745dc 100755 --- a/configure +++ b/configure @@ -885,7 +885,7 @@ fi =20 : ${make=3D${MAKE-make}} : ${install=3D${INSTALL-install}} -: ${python=3D${PYTHON-python}} +: ${python=3D${PYTHON-python3}} : ${smbd=3D${SMBD-/usr/sbin/smbd}} =20 # Default objcc to clang if available, otherwise use CC @@ -1730,13 +1730,13 @@ exit 0 fi =20 if ! has $python; then - error_exit "Python not found. Use --python=3D/path/to/python" + error_exit "Python 3 not found. Use --python=3D/path/to/python" fi =20 # 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 >=3D 2.7 or Python 3 is requi= red." \ +if ! $python -c 'import sys; sys.exit(sys.version_info < (3,0))'; then + error_exit "Cannot use '$python', Python 3 is required." \ "Use --python=3D/path/to/python to specify a supported Python." fi =20 diff --git a/.travis.yml b/.travis.yml index 95be6ec59f..caca9685fa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,7 @@ sudo: false dist: trusty language: c python: - - "2.6" + - "3.6" compiler: - gcc cache: ccache --=20 2.18.0.rc1.1.g3f1ff2140