From unknown Tue Jun 17 20:39:59 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#68416 <68416@debbugs.gnu.org> To: bug#68416 <68416@debbugs.gnu.org> Subject: Status: [PATCH] python: add 3.20 - 3.16 to the version search list Reply-To: bug#68416 <68416@debbugs.gnu.org> Date: Wed, 18 Jun 2025 03:39:59 +0000 retitle 68416 [PATCH] python: add 3.20 - 3.16 to the version search list reassign 68416 automake-patches submitter 68416 Mike Frysinger severity 68416 normal tag 68416 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 13 01:41:59 2024 Received: (at submit) by debbugs.gnu.org; 13 Jan 2024 06:41:59 +0000 Received: from localhost ([127.0.0.1]:38201 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOXiR-00053Y-6Y for submit@debbugs.gnu.org; Sat, 13 Jan 2024 01:41:59 -0500 Received: from lists.gnu.org ([2001:470:142::17]:56324) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOXiP-00053L-Ng for submit@debbugs.gnu.org; Sat, 13 Jan 2024 01:41:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rOXiM-0006Sq-12 for automake-patches@gnu.org; Sat, 13 Jan 2024 01:41:54 -0500 Received: from mail.gentoo.org ([2001:470:ea4a:1:5054:ff:fec7:86e4] helo=smtp.gentoo.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1rOXiK-000749-7x for automake-patches@gnu.org; Sat, 13 Jan 2024 01:41:53 -0500 Received: by smtp.gentoo.org (Postfix, from userid 559) id 85268343137; Sat, 13 Jan 2024 06:41:49 +0000 (UTC) From: Mike Frysinger To: automake-patches@gnu.org Subject: [PATCH] python: add 3.20 - 3.16 to the version search list Date: Sat, 13 Jan 2024 01:41:44 -0500 Message-ID: <20240113064144.573-1-vapier@gentoo.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2001:470:ea4a:1:5054:ff:fec7:86e4; envelope-from=vapier@gentoo.org; helo=smtp.gentoo.org X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.6 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.4 (/) With Python 3.12 out now, and 3.13 out in ~9 months, the existing runway is running out. Bump up to 3.20 for the next Automake release. * m4/python.m4: Add python3.20 - python3.16. * NEWS: Mention new Python versions. --- NEWS | 2 +- m4/python.m4 | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index c4e3d58ecb27..c53573a0abbb 100644 --- a/NEWS +++ b/NEWS @@ -12,7 +12,7 @@ New in 1.17: version. If a specific version of Python 2 is still needed, the $PYTHON variable should be set beforehand. - - AM_PATH_PYTHON will also search for Python versions 3.15 through 3.10. + - AM_PATH_PYTHON will also search for Python versions 3.20 through 3.10. It previously searched for 3.9 through 3.0. (bug#53530) - RANLIB may be overridden on a per-target basis. diff --git a/m4/python.m4 b/m4/python.m4 index 8d4e4d21585b..2de57c52ae81 100644 --- a/m4/python.m4 +++ b/m4/python.m4 @@ -38,6 +38,7 @@ AC_DEFUN([AM_PATH_PYTHON], dnl supported. (2.0 was released on October 16, 2000). m4_define_default([_AM_PYTHON_INTERPRETER_LIST], [python python3 dnl + python3.20 python3.19 python3.18 python3.17 python3.16 dnl python3.15 python3.14 python3.13 python3.12 python3.11 python3.10 dnl python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 dnl python3.2 python3.1 python3.0 dnl -- 2.43.0 From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 13 21:12:17 2024 Received: (at 68416) by debbugs.gnu.org; 14 Jan 2024 02:12:17 +0000 Received: from localhost ([127.0.0.1]:41415 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOpyz-0002bU-4r for submit@debbugs.gnu.org; Sat, 13 Jan 2024 21:12:17 -0500 Received: from frenzy.freefriends.org ([198.99.81.75]:45982 helo=freefriends.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOpyw-0002bF-O3; Sat, 13 Jan 2024 21:12:15 -0500 X-Envelope-From: karl@freefriends.org Received: from freefriends.org (localhost [127.0.0.1]) by freefriends.org (8.14.7/8.14.7) with ESMTP id 40E2CDpI000472 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 13 Jan 2024 19:12:13 -0700 Received: (from apache@localhost) by freefriends.org (8.14.7/8.14.7/Submit) id 40E2CDUR000471; Sat, 13 Jan 2024 19:12:13 -0700 Date: Sat, 13 Jan 2024 19:12:13 -0700 Message-Id: <202401140212.40E2CDUR000471@freefriends.org> From: Karl Berry To: vapier@gentoo.org Subject: Re: [bug#68416] [PATCH] python: add 3.20 - 3.16 to the version search list In-Reply-To: <20240113064144.573-1-vapier@gentoo.org> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68416 Cc: 68416@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) With Python 3.12 out now, and 3.13 out in ~9 months, the existing runway is running out. Bump up to 3.20 for the next Automake release. Applied, thanks. Not proposing to try anything for our upcoming release, but I wonder if there is some more general way to handle Python versions? We don't have to laboriously list every possible version for anything else. As things are, I'm tempted to include 4.20-4.1 too, because their next major incompatibility will probably come sooner rather than later ... wdyt? --thanks, karl. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 13 22:49:52 2024 Received: (at 68416) by debbugs.gnu.org; 14 Jan 2024 03:49:53 +0000 Received: from localhost ([127.0.0.1]:41491 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOrVQ-00073e-Lp for submit@debbugs.gnu.org; Sat, 13 Jan 2024 22:49:52 -0500 Received: from woodpecker.gentoo.org ([140.211.166.183]:48886 helo=smtp.gentoo.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rOrVO-00073Q-IC for 68416@debbugs.gnu.org; Sat, 13 Jan 2024 22:49:51 -0500 Received: by smtp.gentoo.org (Postfix, from userid 559) id 1B9C23431B8; Sun, 14 Jan 2024 03:49:46 +0000 (UTC) Date: Sat, 13 Jan 2024 22:49:44 -0500 From: Mike Frysinger To: Karl Berry Subject: Re: [bug#68416] [PATCH] python: add 3.20 - 3.16 to the version search list Message-ID: References: <20240113064144.573-1-vapier@gentoo.org> <202401140212.40E2CDUR000471@freefriends.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="O4BhxWFhcy8mT7tC" Content-Disposition: inline In-Reply-To: <202401140212.40E2CDUR000471@freefriends.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 68416 Cc: 68416@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --O4BhxWFhcy8mT7tC Content-Type: text/plain; charset=utf-8 Content-Disposition: inline On 13 Jan 2024 19:12, Karl Berry wrote: > Not proposing to try anything for our upcoming release, but I wonder if > there is some more general way to handle Python versions? We don't have > to laboriously list every possible version for anything else. yeah, it sucks. i'm on the fence whether we should have python support in automake at all tbh. > As things are, I'm tempted to include 4.20-4.1 too, because their next > major incompatibility will probably come sooner rather than later ... i assume you're being facetious here -- i think the Python folks learned their lesson with 2->3 and won't do another major bump. -mike --O4BhxWFhcy8mT7tC Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmWjWdgACgkQQWM7n+g3 9YHyXBAAx6xkFTV87YeTfOKCrNCzBYPnRG2pXwGj6bfH1bnBS6uxLa9KzidXkwcO 7WyZ3Kyo76W0p31xII/W+xDM2m+wPrELCBxS3vukW6GG98Ie0jzMWAPiQFGJ/nIG RgbgSXI5TEZRIEoToi1jCTsMddzCrHNP1xuDCnsRzHsvBF+QLKhry+2Kxs3Hg7G4 57qh+8E/vC/1J7PCNWsMGG6TDlPrHXWrswS9ld0LGrErW2ZUtibb8nU8b9cG3ke9 ij6I4QMpypHfB2ucmIhCwR9cOttDcXud3KTOeBniEi8i2/e68xp9/DRoHhcLxUx9 x61u3UBAarBBIL0Mq5JhKLsK6ijjFzabMYEwPqrNXh0F6xgxSNvetIOV14B5ZbHu iiJJQT1EATiwvmtCJFyQFXyf4b7eoG2TSEZBIO40XdvOyDtmzhe6W4zEL3zN7qai M7QOB3LdIYpkel0g6fqc2rg6rXKtGQ2CKIZECsaQYGmtvCJbWLTEO1UpT5iUWPX7 Be7nT0tmbofb3TD65+ElxmlbgJxUABLWBTpAsROpaqrf/w7XHC7OshXSIU6TvSie oeny6zg602vhU0H0qduedpvdpYgn7wUx8esZzDTOM/rQbj7pui01BIeYX7PqShZs rFAZ6WOQHQxxmzR61VRfPHfkDwqGoS78KXjWOfS7xHM8ZFqyuu0= =DNHF -----END PGP SIGNATURE----- --O4BhxWFhcy8mT7tC-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 15 02:25:43 2024 Received: (at 68416) by debbugs.gnu.org; 15 Jan 2024 07:25:43 +0000 Received: from localhost ([127.0.0.1]:44624 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPHLr-0001vZ-7w for submit@debbugs.gnu.org; Mon, 15 Jan 2024 02:25:43 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:44857) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPHLp-0001vR-DT for 68416@debbugs.gnu.org; Mon, 15 Jan 2024 02:25:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1705303541; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=+L5lh1c554pwF6rujhTkiOH2gSB+Q3fwDgRwzyIQRTc=; b=O7e0snY/LiK7FWOF5ETDiAwVm6jBKhSqdjjm4AQdhukFOnuN9sc24Mdq8BwgdtnAWXy3Ut VMO7Tk/Bb2Ba1zFbehXheMfzCU0UFHfTxXRifElsQyEk38F2DwMqW79LCDPbgTCEKrzoRO Cx9wus+MtnPZXIsJGuZxVwcL7pXTLMQ= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-323-g-_a2AmZM3e078jtNgvNRw-1; Mon, 15 Jan 2024 02:25:39 -0500 X-MC-Unique: g-_a2AmZM3e078jtNgvNRw-1 Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-a2b6da35066so322195166b.0 for <68416@debbugs.gnu.org>; Sun, 14 Jan 2024 23:25:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705303537; x=1705908337; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+L5lh1c554pwF6rujhTkiOH2gSB+Q3fwDgRwzyIQRTc=; b=GkB+L3Q3F72y4MGOfB3p1bm1BKlZdwwWsOuPlPmjmb0q3MwAESUDNxKLPfMuc2s7Ea JmNgSK0R9YrrFa9fMn2e3UtbjEbGcxQbDXbMkAJO4gv6blcVqNbsm7ucoYNSTe8o/hGA zjXga3Rb8MMZDApuVT2AKleAZCDrHaP7i0flrR8uIinrECSAMYq+d8F+TqwOBXi9Vszl o8dp/0XZ/enHO0ry1qlLxFW0B9W3ViVRS9WPahxuOF6fDbF30Gz4ZA9lUc6/Hh+eIqZj uvzCAmVKLd0tSwzDfm6FsSobqC9YSnZ/jh2ySKu7JzavMZ3sxOPe8nzcCMt8aCqz/gY/ gT1g== X-Gm-Message-State: AOJu0YypuJTdAfabhGwAChX/nw24qwICpYwp+7HpXpLeCZwE4P7vlyG4 23qlpKJijpkJhbOyWehTUfACv4QY8eApOzmWLugqon/lpy8CVbQxlKAJ0dLLnjEqfd8givIx397 dau/jiY0CUgNWFLqaYz2TdXp1GQxgwniax9/4Ik3wg/8iHSCajw== X-Received: by 2002:a17:906:c058:b0:a28:fdd1:fda8 with SMTP id bm24-20020a170906c05800b00a28fdd1fda8mr1516460ejb.119.1705303537668; Sun, 14 Jan 2024 23:25:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IHLU9+zCNRAm+WqE/+q0linJkvUz0DJKbrC5vo0zwKnje5Rz+Des/yRpna9VQAhw2NgsBNybLR3YzzXcJV0b9Q= X-Received: by 2002:a17:906:c058:b0:a28:fdd1:fda8 with SMTP id bm24-20020a170906c05800b00a28fdd1fda8mr1516455ejb.119.1705303537375; Sun, 14 Jan 2024 23:25:37 -0800 (PST) MIME-Version: 1.0 References: <20240113064144.573-1-vapier@gentoo.org> <202401140212.40E2CDUR000471@freefriends.org> In-Reply-To: <202401140212.40E2CDUR000471@freefriends.org> From: Frederic Berat Date: Mon, 15 Jan 2024 08:25:26 +0100 Message-ID: Subject: Re: bug#68416: [PATCH] python: add 3.20 - 3.16 to the version search list To: 68416@debbugs.gnu.org, karl@freefriends.org, vapier@gentoo.org X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: multipart/alternative; boundary="000000000000946ebf060ef6eb72" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68416 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --000000000000946ebf060ef6eb72 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Jan 14, 2024 at 3:13=E2=80=AFAM Karl Berry w= rote: > With Python 3.12 out now, and 3.13 out in ~9 months, the existing > runway > is running out. Bump up to 3.20 for the next Automake release. > > Applied, thanks. > > Not proposing to try anything for our upcoming release, but I wonder if > there is some more general way to handle Python versions? We don't have > to laboriously list every possible version for anything else. > That may not be the most clever way to do it, but you can probably build the list dynamically at least, with something like (untested): pythons=3D"python python2 python3" for i in {20..0};do pythons=3D"$pythons python3.$i";done for i in {7..0};do pythons=3D"$pythons python2.$i";done m4_define_default([_AM_PYTHON_INTERPRETER_LIST], [$pythons]) > As things are, I'm tempted to include 4.20-4.1 too, because their next > major incompatibility will probably come sooner rather than later ... > > wdyt? --thanks, karl. > > > > --000000000000946ebf060ef6eb72 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Sun, Jan 14, 2024 at 3:13=E2=80=AF= AM Karl Berry <karl@freefriends.= org> wrote:
=C2=A0 =C2=A0 With Python 3.12 out now, and 3.13 out in ~9 months, the e= xisting runway
=C2=A0 =C2=A0 is running out.=C2=A0 Bump up to 3.20 for the next Automake r= elease.

Applied, thanks.

Not proposing to try anything for our upcoming release, but I wonder if
there is some more general way to handle Python versions? We don't have=
to laboriously list every possible version for anything else.

That may not be the most clever way to do it, but yo= u can probably build the list dynamically at least, with something like (un= tested):

pythons=3D"python python2 python= 3"
for i in {20..0};do pythons=3D"$pythons python3.= $i";done
for i in {7..0};do pythons=3D"$pythons python2.$i&qu= ot;;done

m4_define_default([_AM_PYTHON_INTER= PRETER_LIST], [$pythons])


As things are, I'm tempted to include 4.20-4.1 too, because their next<= br> major incompatibility will probably come sooner rather than later ...

wdyt? --thanks, karl.



--000000000000946ebf060ef6eb72-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 15 19:03:00 2024 Received: (at 68416) by debbugs.gnu.org; 16 Jan 2024 00:03:00 +0000 Received: from localhost ([127.0.0.1]:47280 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPWux-0005wf-Pi for submit@debbugs.gnu.org; Mon, 15 Jan 2024 19:03:00 -0500 Received: from mail-oa1-x2b.google.com ([2001:4860:4864:20::2b]:48173) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPWuv-0005wR-Iy for 68416@debbugs.gnu.org; Mon, 15 Jan 2024 19:02:58 -0500 Received: by mail-oa1-x2b.google.com with SMTP id 586e51a60fabf-2041e117abaso4777296fac.0 for <68416@debbugs.gnu.org>; Mon, 15 Jan 2024 16:02:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705363371; x=1705968171; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:references:subject:cc:to :mime-version:user-agent:reply-to:from:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=oUpvVoFdHWNCxT6cAEXbx2X3Ym7Tx1L6y2/IErZSraU=; b=lV++RFXAcbQ2F1L7l/dZ+Yzt9CWLUZpcIi9SxSskd6Z+xCLLuTRqv0DvAp/TFRP33s rYChTw+o/19i0emm4oCQr/O2ooaBtl8wh5UqyXa8HxOLuCiCbqKOPsy8VDj43yB7yb8y AxZAp6M13CioQr9fN1xhM/mHnVqUNWIvKMmQXxyLSxZmLWk/XDyf1J2lSlBDRn7wu8QP G62dzXqmoILNwixQQuk+2l0KJcgVJvvbA9XPQsl5bkDMBVt7WPggQEv2oApsv6Op9zy+ FEb5F0q7PmOqpGQDaK4SHwWPSN+RdKY+nNTbxElxZcKOW0SI8jBTgNwj5xdrkyjBv8mq tpVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705363371; x=1705968171; h=content-transfer-encoding:in-reply-to:references:subject:cc:to :mime-version:user-agent:reply-to:from:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=oUpvVoFdHWNCxT6cAEXbx2X3Ym7Tx1L6y2/IErZSraU=; b=oRiKE6k2x2wSxWodwy2A1S5/Bf9GZQkXeTJo5rGMuEUM+LexzBaC0kOMyYgObIsQuP n6H5fJmw2emVU1tocz7Uxq+udVuH2UUQe555o7dk/NiKV15M0Nse0juQbgH+fAWGFozy cMCaqObVZBAwuHTHgq13ktP8Hn9ImabtpoaCW1kILWR4DihGejtKA0qr2+FQjwQ0dAIO Srf/RW9xuDVfKxt65i+nEnWELI9BQWLYBom/ieXC7BHNM3QyG0mcK+q4YjabQpZY4z1V H05Cs7+cUbVQNSP67PRIbGmyN5rXX52UMObV9j6Uc3iUnXV08H7THwDV6xqv1h93WBc0 H3sQ== X-Gm-Message-State: AOJu0YymeNl325lNAiw3j5thdE283hE3M2PEbE+U2kZR6StS9RkxuToh JDwxywTKNkNYfz4qmCUTW24= X-Google-Smtp-Source: AGHT+IFeClD6lnQUTCEiDddMdwJx5aRdSQG+u1KDvdpdGivUozWu/3oaJVYXN3aHXhGJNL6Dppd7LA== X-Received: by 2002:a05:6870:5d85:b0:206:a1d1:bd3d with SMTP id fu5-20020a0568705d8500b00206a1d1bd3dmr5474864oab.71.1705363371637; Mon, 15 Jan 2024 16:02:51 -0800 (PST) Received: from [127.0.0.1] ([70.133.144.148]) by smtp.gmail.com with ESMTPSA id op7-20020a0568702dc700b002065818cb7fsm2680256oab.20.2024.01.15.16.02.50 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 15 Jan 2024 16:02:51 -0800 (PST) Message-ID: <65A5C7A9.3080400@gmail.com> Date: Mon, 15 Jan 2024 18:02:49 -0600 From: Jacob Bachmeyer User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.22) Gecko/20090807 MultiZilla/1.8.3.4e SeaMonkey/1.1.17 Mnenhy/0.7.6.0 MIME-Version: 1.0 To: Frederic Berat Subject: Re: [bug#68416] [PATCH] python: add 3.20 - 3.16 to the version search list References: <20240113064144.573-1-vapier@gentoo.org> <202401140212.40E2CDUR000471@freefriends.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 68416 Cc: vapier@gentoo.org, 68416@debbugs.gnu.org, karl@freefriends.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: jcb62281@gmail.com Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.6 (---) Frederic Berat wrote: > On Sun, Jan 14, 2024 at 3:13 AM Karl Berry wrote: > > >> With Python 3.12 out now, and 3.13 out in ~9 months, the existing >> runway >> is running out. Bump up to 3.20 for the next Automake release. >> >> Applied, thanks. >> >> Not proposing to try anything for our upcoming release, but I wonder if >> there is some more general way to handle Python versions? We don't have >> to laboriously list every possible version for anything else. >> >> > > That may not be the most clever way to do it, but you can probably build > the list dynamically at least, with something like (untested): > > pythons="python python2 python3" > for i in {20..0};do pythons="$pythons python3.$i";done > for i in {7..0};do pythons="$pythons python2.$i";done > > m4_define_default([_AM_PYTHON_INTERPRETER_LIST], [$pythons]) > The {20..0} is a syntax unfamiliar to me, yet even Bash 3 has it... interesting. Also interesting that it is brace expansion, so you could do: pythons=`echo python{,2,3} python3.{20..0} python2.{7..0}` The use of command substitution and echo works around the small catch that brace expansion does not occur inside double quotes. However, brace expansion does occur inside a command substitution inside double quotes, but the result of command substitution as a variable assignment is not subject to word splitting, so the double quotes can be omitted. I wonder if all shells that allow {20..0} also allow $() for command substitution, or if this code must be valid in shells that predate POSIX... Oh wait, after reviewing the thread, I find that this is in m4 macros. Yes, it could be dynamically produced, but not using shell iteration constructs or expansions. Macros in m4 are allowed to use tail recursion, and counted iteration is possible to implement (and autoconf provides some macros for it). The required quoting is "fun" and Automake may complain that this appears to be underquoted: (untested; the fine details of the quoting may be wrong) m4_define_default([_AM_PYTHON_INTERPRETER_LIST], dnl [python python2 python3] dnl m4_for(i, 20, 0, -1, [ python3.i]) dnl m4_for(i, 7, 0, -1, [ python2.i])) As written, this might lead to some extra spaces in the interpreter list, but the shell will ignore those when running configure. -- Jacob From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 16 17:47:12 2024 Received: (at 68416) by debbugs.gnu.org; 16 Jan 2024 22:47:12 +0000 Received: from localhost ([127.0.0.1]:50090 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPsDA-0001PG-Bk for submit@debbugs.gnu.org; Tue, 16 Jan 2024 17:47:12 -0500 Received: from frenzy.freefriends.org ([198.99.81.75]:33906 helo=freefriends.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPsD8-0001P0-PI; Tue, 16 Jan 2024 17:47:11 -0500 X-Envelope-From: karl@freefriends.org Received: from freefriends.org (localhost [127.0.0.1]) by freefriends.org (8.14.7/8.14.7) with ESMTP id 40GMl7MM027408 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 16 Jan 2024 15:47:07 -0700 Received: (from apache@localhost) by freefriends.org (8.14.7/8.14.7/Submit) id 40GMl6JC027407; Tue, 16 Jan 2024 15:47:06 -0700 Date: Tue, 16 Jan 2024 15:47:06 -0700 Message-Id: <202401162247.40GMl6JC027407@freefriends.org> From: Karl Berry To: 68416@debbugs.gnu.org Subject: Re: [bug#68416] [PATCH] python: add 3.20 - 3.16 to the version search list In-Reply-To: <65A5C7A9.3080400@gmail.com> X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 68416 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Sorry to be a curmudgeon, but I don't see an advantage to merely dynamically synthesizing the static list of versions. If anything, I think statically listing everything in text is clearer and less error-prone. What would be an improvement is to not to have this list of versions at all. I guess we could consider each element of PATH in turn, looking for executables named python\d\.?\d+ (something like that), but it seems fragile not to use AC_PATH_PROGS. Dealing with .exe, sorting the resulting possible set of names correctly ("by reverse version"), and other niggling details. So I guess in the end my inclination is to leave bad enough alone. Might as well close this. Thanks to everyone for the input. Karl P.S. As for Python 4: no, I was not being facetious about Python's demonstrated lack of interest in compatibility. It doesn't seem like it would hurt anything much to add python4 and python4.0, but I'm content to never mind that, and await developments. From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 16 22:03:23 2024 Received: (at 68416) by debbugs.gnu.org; 17 Jan 2024 03:03:23 +0000 Received: from localhost ([127.0.0.1]:50280 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPwD5-0003Pc-4z for submit@debbugs.gnu.org; Tue, 16 Jan 2024 22:03:23 -0500 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:41189) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPwD2-0003PJ-DT for 68416@debbugs.gnu.org; Tue, 16 Jan 2024 22:03:21 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 44FB83200A73; Tue, 16 Jan 2024 22:03:13 -0500 (EST) Received: from imap45 ([10.202.2.95]) by compute5.internal (MEProxy); Tue, 16 Jan 2024 22:03:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=owlfolio.org; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1705460592; x=1705546992; bh=3b3kOinbyS fBLyRg1WRVgYwrP7PO8meLjQnaKqOUI94=; b=M+9Ojzca1aFT64wCqx5BQYC0mK asvEifz/HDeoUx3KgV6C/FdomEaB2TbUTylSczMP7X8NGscoQ4lWMRMx9lrEHalQ FWeAfVyzCYHF+vfKz60usDuawAfUPygKkqQFUyLzLENp03aqCx2E/U5RIrWs6fw9 QM0z0M0DrMhCuJNL3iXZ4zcyUpzFuZHrtofp96OxvwojcfwqaI7QATQJ5jm91n71 u39W6UMUqIfzBzRQmzLU1zit47wRND3osmdftOWMYVBL81YcgNohQHiz72oYSSBT Jmpfode89taAzqFkW7Nv6g+pk0SuFJmdRQIkK17bwxwsJ7xX5YPSwTPnExnQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1705460592; x=1705546992; bh=3b3kOinbySfBLyRg1WRVgYwrP7PO 8meLjQnaKqOUI94=; b=OBlKi1TCJcEcRFq5HM7b8OVXChoOqoFEJOmItK0c8nsX cP2U/PGDNg2IafaLWEBOw8yaznqpAYmF0EVjAKqC7/8TYkFugswm9NWGIc3Y7lmc cCID4d02cEo89VY7J90EaBUWBMG0KphR+NDLdoHoHUdJkyUCBTU7G/MU9+sUpb/W zgZDBKhICrPtwECxd2RakwRrzgNZ3/lOnw5RGDczqQMheHYQiyXyorCTDAfIU7O2 OJeffmoII1sTYDxLYw7hOpYWup3EF5pTjalQJnHnE2iNMA/GZp0pQwZI5HE03I26 RSXjMxOTxirroPbfjFuFjPjMhs3EVTeDGCez8y4syA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdejgedgheefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedfkggr tghkucghvghinhgsvghrghdfuceoiigrtghksehofihlfhholhhiohdrohhrgheqnecugg ftrfgrthhtvghrnhephfelfeehudfhleegheegjeevheeuieehvdfgueeuteetleeiieet heefhfeludeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepiigrtghksehofihlfhholhhiohdrohhrgh X-ME-Proxy: Feedback-ID: i876146a2:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 86745272007C; Tue, 16 Jan 2024 22:03:12 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-1374-gc37f3abe3d-fm-20240102.001-gc37f3abe MIME-Version: 1.0 Message-Id: In-Reply-To: <65A5C7A9.3080400@gmail.com> References: <20240113064144.573-1-vapier@gentoo.org> <202401140212.40E2CDUR000471@freefriends.org> <65A5C7A9.3080400@gmail.com> Date: Tue, 16 Jan 2024 22:02:34 -0500 From: "Zack Weinberg" To: "Jacob Bachmeyer" , "Frederic Berat" Subject: Re: [bug#68416] [PATCH] python: add 3.20 - 3.16 to the version search list Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 68416 Cc: 68416@debbugs.gnu.org, Mike Frysinger , Karl Berry X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On Mon, Jan 15, 2024, at 7:02 PM, Jacob Bachmeyer wrote: > Frederic Berat wrote: >> pythons="python python2 python3" >> for i in {20..0};do pythons="$pythons python3.$i";done >> for i in {7..0};do pythons="$pythons python2.$i";done >> >> m4_define_default([_AM_PYTHON_INTERPRETER_LIST], [$pythons]) > > The {20..0} is a syntax unfamiliar to me, yet even Bash 3 has it... > interesting. Just responding to this specific thing: the POSIX shell spec doesn't include any form of brace expansion. ksh93 (-2008) does recognize both {a,b,c} and {1..10}, but NetBSD /bin/sh and /bin/ksh don't. The `seq` utility is not portable either. zw From unknown Tue Jun 17 20:39:59 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 14 Feb 2024 12:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator