From nobody Thu May 16 22:06:37 2024 Delivered-To: importer@patchew.org Received-SPF: temperror (zoho.com: Error in retrieving data from DNS) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=temperror (zoho.com: Error in retrieving data from DNS) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1556912320; cv=none; d=zoho.com; s=zohoarc; b=kFzm+nmOkBOzb2T973GdcUA8XNNe3nNZZMw0ZtX9z80uIo76NZhETKnaW8k49pjvq2zCGI7l8wLrHkkHZ2eGkqedXY1xeQ6KEvldjY7ZaZb1RJIifle7ZpD2zwwYYx3EpmlrVrO0NSkmuQt1hmOHiXQU2j5Uy/IUQok9SRADDpA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1556912320; h=Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=mSj5oVFxOGDp3aDlWhO3AbxnOk0F8AYbP/haLcSlaUo=; b=Dp74ys03yoYwYz7TUqqxHvsvZ9uDawv8RFvYPEF5AvDySMRN32WB0zHAHi/BuFSAyUdNG049ZmFjVex4X86M+x3PSYhUf2FyT1GJfePO0iMgZKGZqnpwFmEr96Lha8xFEvR0+ZWq1O8T5LLcX4Rf2w1Tz0wOFQGpGc40FOonYw0= ARC-Authentication-Results: i=1; mx.zoho.com; spf=temperror (zoho.com: Error in retrieving data from DNS) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 1556912320560371.5126690744672; Fri, 3 May 2019 12:38:40 -0700 (PDT) Received: from localhost ([127.0.0.1]:46483 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMe0n-0000SU-3y for importer@patchew.org; Fri, 03 May 2019 15:38:25 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33399) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMdzs-0008Sj-AF for qemu-devel@nongnu.org; Fri, 03 May 2019 15:37:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hMdzr-0005cp-Ch for qemu-devel@nongnu.org; Fri, 03 May 2019 15:37:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33318) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hMdzr-0005cc-7b for qemu-devel@nongnu.org; Fri, 03 May 2019 15:37:27 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6BDE5811DC; Fri, 3 May 2019 19:37:26 +0000 (UTC) Received: from localhost (ovpn-116-9.gru2.redhat.com [10.97.116.9]) by smtp.corp.redhat.com (Postfix) with ESMTP id A6BB35D9C4; Fri, 3 May 2019 19:37:23 +0000 (UTC) From: Eduardo Habkost To: qemu-devel@nongnu.org Date: Fri, 3 May 2019 16:37:21 -0300 Message-Id: <20190503193721.18459-1-ehabkost@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Fri, 03 May 2019 19:37:26 +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] [PATCH] Deprecate Python 2 support 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: Peter Maydell , Thomas Huth , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Cleber Rosa Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Python 2 will reach end of life in January 1 2020. Declare it as deprecated. Signed-off-by: Eduardo Habkost Reviewed-by: Daniel P. Berrang=C3=A9 Reviewed-by: Markus Armbruster Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Thomas Huth --- configure | 8 ++++++++ qemu-deprecated.texi | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/configure b/configure index 5b183c2e39..50385061ed 100755 --- a/configure +++ b/configure @@ -6461,6 +6461,14 @@ if test "$supported_os" =3D "no"; then echo "us upstream at qemu-devel@nongnu.org." 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 < (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=3D"config-host.mak" =20 echo "# Automatically generated by configure - do not modify" >config-all-= disas.mak diff --git a/qemu-deprecated.texi b/qemu-deprecated.texi index 842e71b11d..2f2d9a3e95 100644 --- a/qemu-deprecated.texi +++ b/qemu-deprecated.texi @@ -206,3 +206,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. --=20 2.18.0.rc1.1.g3f1ff2140