From nobody Sat Feb 7 10:44:37 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1562020244; cv=none; d=zoho.com; s=zohoarc; b=BWVjDYUk8rn2nIpDrnwlXxTZJfnJ+JWrF8l37W5WY4D4tujwWKlfy/DC22OmKyuWY2NTOe7q/yJtIDf2FZJytxsc4mZFfmwvAfg0EWOvT9t7kCxmNwMmRJzBXs1ESGzcdnRub1VbgkuX/8wwA4Aai3KQMRIg8lkODplr+WQeZxA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1562020244; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=yTrlDxALtcoxCqP4GwzGkHk63qrZY+pXJs0QBcGy3xo=; b=EEYWjkkNGDh5g01106K5HmHiossKA5RZkCAfN8nGNu9yoQVzhNNr3uNs2TBwwksFYE1H6+lUzInP1O1qk3NAFuUl6Tw7aWkfAzq36QkNL7wBMKJOSsOlHfOlw7gpjwdoO+edEF+7v8DzHRQeJ4HJA2s7BMIpFZtSukAqpHh+JHg= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1562020244421897.7070325763489; Mon, 1 Jul 2019 15:30:44 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B75273082B6B; Mon, 1 Jul 2019 22:30:41 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8C02984FA; Mon, 1 Jul 2019 22:30:41 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 1E20924AFA; Mon, 1 Jul 2019 22:30:39 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x61MTrJm032139 for ; Mon, 1 Jul 2019 18:29:53 -0400 Received: by smtp.corp.redhat.com (Postfix) id 031A27A4DA; Mon, 1 Jul 2019 22:29:53 +0000 (UTC) Received: from localhost (ovpn-116-30.gru2.redhat.com [10.97.116.30]) by smtp.corp.redhat.com (Postfix) with ESMTP id 367FB5D9C3; Mon, 1 Jul 2019 22:29:48 +0000 (UTC) From: Eduardo Habkost To: Peter Maydell , qemu-devel@nongnu.org, Cleber Rosa Date: Mon, 1 Jul 2019 19:29:12 -0300 Message-Id: <20190701222912.4703-5-ehabkost@redhat.com> In-Reply-To: <20190701222912.4703-1-ehabkost@redhat.com> References: <20190701222912.4703-1-ehabkost@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Cc: Fam Zheng , Kevin Wolf , Eduardo Habkost , qemu-block@nongnu.org, libvir-list@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , Max Reitz , Aleksandar Rikalo , Aleksandar Markovic , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aurelien Jarno Subject: [libvirt] [PULL 4/4] Deprecate Python 2 support X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Mon, 01 Jul 2019 22:30:43 +0000 (UTC) Python 2 will reach end of life in January 1 2020. Declare it as deprecated. Signed-off-by: Eduardo Habkost Message-Id: <20190503193721.18459-1-ehabkost@redhat.com> Reviewed-by: Thomas Huth Reviewed-by: Markus Armbruster Reviewed-by: Daniel P. Berrang=C3=A9 [ehabkost: print "warning:" in lowercase] Signed-off-by: Eduardo Habkost --- configure | 8 ++++++++ qemu-deprecated.texi | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/configure b/configure index f2cb9f3c66..d565ea4bb9 100755 --- a/configure +++ b/configure @@ -6502,6 +6502,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 df04f2840b..241c978d2d 100644 --- a/qemu-deprecated.texi +++ b/qemu-deprecated.texi @@ -243,3 +243,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 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list