GNU logs - #71672, boring messages


Message sent to automake-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#71672] [PATCH] python: Prefer python3 over python
Resent-From: Collin Funk <collin.funk1@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: automake-patches@HIDDEN
Resent-Date: Thu, 20 Jun 2024 09:51:01 +0000
Resent-Message-ID: <handler.71672.B.171887703616631 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 71672
X-GNU-PR-Package: automake-patches
X-GNU-PR-Keywords: patch
To: 71672 <at> debbugs.gnu.org
X-Debbugs-Original-To: automake-patches@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.171887703616631
          (code B ref -1); Thu, 20 Jun 2024 09:51:01 +0000
Received: (at submit) by debbugs.gnu.org; 20 Jun 2024 09:50:36 +0000
Received: from localhost ([127.0.0.1]:50732 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sKER9-0004K9-RQ
	for submit <at> debbugs.gnu.org; Thu, 20 Jun 2024 05:50:36 -0400
Received: from lists.gnu.org ([209.51.188.17]:51400)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <collin.funk1@HIDDEN>) id 1sKER8-0004K2-FZ
 for submit <at> debbugs.gnu.org; Thu, 20 Jun 2024 05:50:35 -0400
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 <collin.funk1@HIDDEN>)
 id 1sKER4-0001H5-0D
 for automake-patches@HIDDEN; Thu, 20 Jun 2024 05:50:30 -0400
Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <collin.funk1@HIDDEN>)
 id 1sKER2-0004xG-03
 for automake-patches@HIDDEN; Thu, 20 Jun 2024 05:50:29 -0400
Received: by mail-pg1-x531.google.com with SMTP id
 41be03b00d2f7-6c53a315c6eso502315a12.3
 for <automake-patches@HIDDEN>; Thu, 20 Jun 2024 02:50:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1718877024; x=1719481824; darn=gnu.org;
 h=content-language:to:subject:from:user-agent:mime-version:date
 :message-id:from:to:cc:subject:date:message-id:reply-to;
 bh=g+REtwe7jaMp0MWQttonX3Ezobn7LeUNfGw5iFIibuw=;
 b=nGhEaLFsC0DvmjmCVaYK4wMwjC1rrUH4Qao1sxVWD2/dZ9OS9t3KofeKoeo3lWwHWB
 GRrnfVjYD4Q4mudLNQZGKQ4wTkRD9+3mLxg7EDMFuFGR21iYH8H8x4QAoxIJymJyLioX
 gjS6kRgGcmZurdEOSHq66SND7AFq3+a/vatU+QB21JFBRm4C64gB0GBmODqvaKHXU0mp
 TlZMhhekBFnou67RknsEFrymxVK3lbYEA5NvfSxL9P/t72dkA5R5K1HTatorqqOhxkXn
 3ui/CqTNBeR6sQzNGMhrduowTdVsSb+9OusRhbqn2i1U11WfEevhnOEsVKo6SQmI8K8+
 PqmQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1718877024; x=1719481824;
 h=content-language:to:subject:from:user-agent:mime-version:date
 :message-id:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=g+REtwe7jaMp0MWQttonX3Ezobn7LeUNfGw5iFIibuw=;
 b=ATKlA5ofjpe5f5/Ye8LizFNajdPvNV9TPySvndFL4jkD0sZtQpPDzxESjZdR3JpY9F
 ZN0vOQBA6aVn8B/I6ZKVDJki9FMyhFrznIsCcrOyO+lGARfNCQ2MGyA/aHTy1r6XdVfz
 4I2GU0pj3E4OYuP0mRCNxIxW9tLe0L3GUpr0gVMZRMbGSbU7sr0B0sQO50hmQaSOaJAr
 wxkllnRbHmMiA/T4kZ62sjvhMDNESlmy1cqcaiuaU4wUz+JQRTxJjFO3qbBsnG9PzuT6
 ++YLK2SmiK5wKz3FAbLOebsFcbPKH+V0QDF6it+P5vRUltLAZ69f0JaH74VlJtVK46vD
 2iGg==
X-Gm-Message-State: AOJu0YyJT1dLdhlvtTZrUU+257BZak7nI4NWufakqSKczlv+o4BG7MdF
 r5KrXxiwKOYY1SBHqxTDyqxO9wcna+C/4Ca+UXXDRYA9R0u2MnnydV4hKA==
X-Google-Smtp-Source: AGHT+IGLE3crY7jlJEdqAOMyZF+Hm1lD/ZVeKoMWw5VSH+bWuIoBKrvz0KbKqBo5oSbri5wDaewrHA==
X-Received: by 2002:a05:6a20:8b18:b0:1bc:c91a:a3fc with SMTP id
 adf61e73a8af0-1bcc91aa71fmr1703879637.28.1718877018554; 
 Thu, 20 Jun 2024 02:50:18 -0700 (PDT)
Received: from [192.168.1.14] (c-73-189-213-139.hsd1.ca.comcast.net.
 [73.189.213.139]) by smtp.gmail.com with ESMTPSA id
 98e67ed59e1d1-2c7e5af9c50sm1243589a91.39.2024.06.20.02.50.17
 for <automake-patches@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Thu, 20 Jun 2024 02:50:17 -0700 (PDT)
Content-Type: multipart/mixed; boundary="------------wfnwWj0TZnwsi4S8dTl4ZkBJ"
Message-ID: <8a243d12-4f25-4912-aa1f-b6f8c3ff4d2d@HIDDEN>
Date: Thu, 20 Jun 2024 02:50:16 -0700
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
From: Collin Funk <collin.funk1@HIDDEN>
Content-Language: en-US
Received-SPF: pass client-ip=2607:f8b0:4864:20::531;
 envelope-from=collin.funk1@HIDDEN; helo=mail-pg1-x531.google.com
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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: -1.1 (-)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.1 (--)

This is a multi-part message in MIME format.
--------------wfnwWj0TZnwsi4S8dTl4ZkBJ
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

Hi,

Shouldn't AM_PATH_PYTHON check for the python3 command before python?
The full recommendation of how these should be setup is in PEP 394
[1].

On modern systems I don't think it should matter. On Fedora 40:

    $ command -v python
    /usr/bin/python
    $ command -v python3
    /usr/bin/python3
    $ python --version
    Python 3.12.3
    $ python3 --version
    Python 3.12.3

The difference mostly exists on older machines. On CentOS 7.9 for
example:

    $ command -v python
    /usr/bin/python
    $ command -v python3
    /usr/bin/python3
    $ python --version
    Python 2.7.5
    $ python3 --version
    Python 3.6.8

I've attached a proposed path. I don't see a situation where a
python3.* is installed without a python3 link. Therefore checking for
python3 and fallingback on python seems reasonable to me.

Collin

[1] https://peps.python.org/pep-0394/
--------------wfnwWj0TZnwsi4S8dTl4ZkBJ
Content-Type: text/x-patch; charset=UTF-8;
 name="0001-python-Prefer-python3-over-python.patch"
Content-Disposition: attachment;
 filename="0001-python-Prefer-python3-over-python.patch"
Content-Transfer-Encoding: base64

RnJvbSBjZDg4YTI0NjFmMGM4OWMyZTcwYTdmYzNhMTcwNThmYjk4OTMxM2Q0IE1vbiBTZXAg
MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBDb2xsaW4gRnVuayA8Y29sbGluLmZ1bmsxQGdtYWls
LmNvbT4KRGF0ZTogVGh1LCAyMCBKdW4gMjAyNCAwMjoyNjo1MiAtMDcwMApTdWJqZWN0OiBb
UEFUQ0hdIHB5dGhvbjogUHJlZmVyIHB5dGhvbjMgb3ZlciBweXRob24KCiogbTQvcHl0aG9u
Lm00IChBTV9QQVRIX1BZVEhPTik6IENoZWNrIGZvciBweXRob24zIGJlZm9yZSBweXRob24u
CiogTkVXUzogRG9jdW1lbnQgdGhhdCBweXRob24zIGlzIHVzZWQgZmlyc3QuCi0tLQogTkVX
UyAgICAgICAgIHwgMiArLQogbTQvcHl0aG9uLm00IHwgMiArLQogMiBmaWxlcyBjaGFuZ2Vk
LCAyIGluc2VydGlvbnMoKyksIDIgZGVsZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEvTkVXUyBi
L05FV1MKaW5kZXggNzczNDdlNWEzLi45OWM1NjJmMTUgMTAwNjQ0Ci0tLSBhL05FV1MKKysr
IGIvTkVXUwpAQCAtNyw3ICs3LDcgQEAgTmV3IGluIDEuMTc6CiAKICogTmV3IGZlYXR1cmVz
IGFkZGVkCiAKLSAgLSBBTV9QQVRIX1BZVEhPTiB3aWxsLCBhZnRlciBjaGVja2luZyAicHl0
aG9uIiwgcHJlZmVyIGFueSBQeXRob24gMworICAtIEFNX1BBVEhfUFlUSE9OIHdpbGwsIGFm
dGVyIGNoZWNraW5nICJweXRob24zIiwgcHJlZmVyIGFueSBQeXRob24gMwogICAgIHZlcnNp
b24gKGxhdGVzdCB2ZXJzaW9ucyBjaGVja2VkIGZpcnN0KSBvdmVyIGFueSBQeXRob24gMgog
ICAgIHZlcnNpb24uIElmIGEgc3BlY2lmaWMgdmVyc2lvbiBvZiBQeXRob24gMiBpcyBzdGls
bCBuZWVkZWQsIHRoZQogICAgICRQWVRIT04gdmFyaWFibGUgc2hvdWxkIGJlIHNldCBiZWZv
cmVoYW5kLgpkaWZmIC0tZ2l0IGEvbTQvcHl0aG9uLm00IGIvbTQvcHl0aG9uLm00CmluZGV4
IDBiMWRiMjY4OS4uMjExMTZlMWEzIDEwMDY0NAotLS0gYS9tNC9weXRob24ubTQKKysrIGIv
bTQvcHl0aG9uLm00CkBAIC0zNyw3ICszNyw3IEBAIEFDX0RFRlVOKFtBTV9QQVRIX1BZVEhP
Tl0KICAgZG5sIEZpbmQgYSBQeXRob24gaW50ZXJwcmV0ZXIuICBQeXRob24gdmVyc2lvbnMg
cHJpb3IgdG8gMi4wIGFyZSBub3QKICAgZG5sIHN1cHBvcnRlZC4gKDIuMCB3YXMgcmVsZWFz
ZWQgb24gT2N0b2JlciAxNiwgMjAwMCkuCiAgIG00X2RlZmluZV9kZWZhdWx0KFtfQU1fUFlU
SE9OX0lOVEVSUFJFVEVSX0xJU1RdLAotW3B5dGhvbiBweXRob24zIGRubAorW3B5dGhvbjMg
cHl0aG9uIGRubAogIHB5dGhvbjMuMjAgcHl0aG9uMy4xOSBweXRob24zLjE4IHB5dGhvbjMu
MTcgcHl0aG9uMy4xNiBkbmwKICBweXRob24zLjE1IHB5dGhvbjMuMTQgcHl0aG9uMy4xMyBw
eXRob24zLjEyIHB5dGhvbjMuMTEgcHl0aG9uMy4xMCBkbmwKICBweXRob24zLjkgcHl0aG9u
My44IHB5dGhvbjMuNyBweXRob24zLjYgcHl0aG9uMy41IHB5dGhvbjMuNCBweXRob24zLjMg
ZG5sCi0tIAoyLjQ1LjIKCg==

--------------wfnwWj0TZnwsi4S8dTl4ZkBJ--




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Collin Funk <collin.funk1@HIDDEN>
Subject: bug#71672: Acknowledgement ([PATCH] python: Prefer python3 over
 python)
Message-ID: <handler.71672.B.171887703616631.ack <at> debbugs.gnu.org>
References: <8a243d12-4f25-4912-aa1f-b6f8c3ff4d2d@HIDDEN>
X-Gnu-PR-Message: ack 71672
X-Gnu-PR-Package: automake-patches
X-Gnu-PR-Keywords: patch
Reply-To: 71672 <at> debbugs.gnu.org
Date: Thu, 20 Jun 2024 09:51:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 automake-patches@HIDDEN

If you wish to submit further information on this problem, please
send it to 71672 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
71672: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D71672
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to automake-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#71672] [PATCH] python: Prefer python3 over python
Resent-From: "Zack Weinberg" <zack@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: automake-patches@HIDDEN
Resent-Date: Thu, 20 Jun 2024 13:34:01 +0000
Resent-Message-ID: <handler.71672.B71672.17188904272129 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 71672
X-GNU-PR-Package: automake-patches
X-GNU-PR-Keywords: patch
To: "Collin Funk" <collin.funk1@HIDDEN>, 71672 <at> debbugs.gnu.org
Received: via spool by 71672-submit <at> debbugs.gnu.org id=B71672.17188904272129
          (code B ref 71672); Thu, 20 Jun 2024 13:34:01 +0000
Received: (at 71672) by debbugs.gnu.org; 20 Jun 2024 13:33:47 +0000
Received: from localhost ([127.0.0.1]:56880 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sKHv9-0000YG-8v
	for submit <at> debbugs.gnu.org; Thu, 20 Jun 2024 09:33:47 -0400
Received: from fout7-smtp.messagingengine.com ([103.168.172.150]:42473)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zack@HIDDEN>) id 1sKHv6-0000Xt-Ha
 for 71672 <at> debbugs.gnu.org; Thu, 20 Jun 2024 09:33:45 -0400
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45])
 by mailfout.nyi.internal (Postfix) with ESMTP id 55C9F1380194;
 Thu, 20 Jun 2024 09:33:35 -0400 (EDT)
Received: from imap45 ([10.202.2.95])
 by compute5.internal (MEProxy); Thu, 20 Jun 2024 09:33:35 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=owlfolio.org; h=
 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=fm1; t=1718890415; x=1718976815; bh=VSklGsS6xP
 NaWMGk9QQBM5gixn9XBUbza4fcTgcxaHE=; b=Lx+UV/exKBK5FqFQAu0Qlbks/X
 8knKer//Z6/8k0dy41qvncN83B+QuCQ72VZtFGxj78WB3R7d2YRUcpGL2+tU5Gb6
 XSP4me10Xxp3SCN7UeNRiQW7IsOo0BocL8TK/21uatl7qzMXnK38ub/n2DUrQfbL
 mPHlb8VyZQlgw+0RDJvztXtQdGdzjFqm7xd6wvXA+d3yFYayZpTu43pkvmtsCBDT
 f8+FlOuK3GX+Y+HCcuLRECH8S0GPDWuUSaby2C9FfCQPrQJRdvttDEn1DbrkgMdO
 4HUZ87m11Ng4pRPLk07zXZ15ACbnphHNM/Ky9s47MTb8yJ9NuGHNl1B43oOA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=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=
 fm2; t=1718890415; x=1718976815; bh=VSklGsS6xPNaWMGk9QQBM5gixn9X
 BUbza4fcTgcxaHE=; b=n8qX5w4AbYBG43ewgeEnaJ0aUNv/7ZuK/pE7Ki8FyOgl
 WN+M2fMEtpJEYEjbOoNF26SnbbhFzAUitXk/BIYXa2civ7zw0EszvWSJc8tBq5eZ
 ePLESgs4nXuT1xuhwrGLr9qakpNGoOLAil5QSOt1t4vmvllp+O9ceXw+tNGWP412
 fS7mjx4cMFLgkEGo8cCWR6z0OoX4oGBn9izOJJi65zmik5GVqvbdk0O+vjMa8fYU
 pU60Z+JRxzuO9jZarGbgJunoni1xpmcZy3N7kFNcl+7DNXjJLdJ9/ygEtZBfkJ0A
 vtqoO4VKM6a4InUDTYnMjBXnnHuFtNcrTJMUmAPUpQ==
X-ME-Sender: <xms:ry90ZiNPgT30AShmKz8vIfny9p5wJUqBmvP29sJAkVcwtWNmb6u-aQ>
 <xme:ry90Zg9AYvPPpaYHguDQxYV_Hok_iKEFOMG20MCxVGiia6DApaKmXxBL1TQ600eYV
 TZU1cNKEov_UQplrTU>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfeefvddgieeiucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
 cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdgkrggt
 khcuhggvihhnsggvrhhgfdcuoeiirggtkhesohiflhhfohhlihhordhorhhgqeenucggtf
 frrghtthgvrhhnpefhuefhveeuffetfffgjeetgfekkeehfedtfeelgfehffffveehkeel
 fefgheffudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh
 hmpeiirggtkhesohiflhhfohhlihhordhorhhg
X-ME-Proxy: <xmx:ry90ZpQYl-0XmNbKD6hGLMMIDyLKvtVCey26Bfqi0Yymfgz_QpEEcw>
 <xmx:ry90ZivbvS6O5BxLlOGRz2bHM5zk0RQe8Olz0fNOwXb8QAkPl5-FeA>
 <xmx:ry90Zqe3pguDCaK6SGpxtCaRB5EISHnskF_TPWrP8wVjINup-H2Pxw>
 <xmx:ry90Zm3Y1l8RH5OEtLgY8dGXIZ1VanxVWGk30P5N91jAJ8W974WVNg>
 <xmx:ry90ZuEAJ2-jJyXcDeMWVP5axzL0iPGkrSv2nNMEFZoWiEBR6nWn6smH>
Feedback-ID: i876146a2:Fastmail
Received: by mailuser.nyi.internal (Postfix, from userid 501)
 id ECFD5272007C; Thu, 20 Jun 2024 09:33:34 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.11.0-alpha0-522-ga39cca1d5-fm-20240610.002-ga39cca1d
MIME-Version: 1.0
Message-Id: <9253a3a6-43c4-4148-bc9e-8426ab93068c@HIDDEN>
In-Reply-To: <8a243d12-4f25-4912-aa1f-b6f8c3ff4d2d@HIDDEN>
References: <8a243d12-4f25-4912-aa1f-b6f8c3ff4d2d@HIDDEN>
Date: Thu, 20 Jun 2024 09:33:14 -0400
From: "Zack Weinberg" <zack@HIDDEN>
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

On Thu, Jun 20, 2024, at 5:50 AM, Collin Funk wrote:
> Shouldn't AM_PATH_PYTHON check for the python3 command before python?

Yes it should.

> The full recommendation of how these should be setup is in PEP 394

Note that PEP 394 is dangerously incorrect on one point: a system where
/usr/bin/python and/or the bare 'python' command invoke Python 3 is a
misconfigured system, because there's -- yes, even now -- a huge volume
of Python 2-only scripts out there in the wild that will malfunction if
run under a Python 3 interpreter.  In the worst case "malfunction" means
"cause silent data corruption."

This is mostly not Automake's problem, but -- assuming people who use
AM_PATH_PYTHON with current versions of Automake *want* the Python 3
interpreter, for the most part -- it might be an argument for *not*
probing unsuffixed 'python', only 'python3' and 'python3.*'.

zw




Message sent to automake-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#71672] [PATCH] python: Prefer python3 over python
References: <8a243d12-4f25-4912-aa1f-b6f8c3ff4d2d@HIDDEN>
Resent-From: Karl Berry <karl@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: automake-patches@HIDDEN
Resent-Date: Thu, 20 Jun 2024 21:29:01 +0000
Resent-Message-ID: <handler.71672.B71672.171891892632246 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 71672
X-GNU-PR-Package: automake-patches
X-GNU-PR-Keywords: patch
To: zack@HIDDEN
Cc: 71672 <at> debbugs.gnu.org, collin.funk1@HIDDEN
Received: via spool by 71672-submit <at> debbugs.gnu.org id=B71672.171891892632246
          (code B ref 71672); Thu, 20 Jun 2024 21:29:01 +0000
Received: (at 71672) by debbugs.gnu.org; 20 Jun 2024 21:28:46 +0000
Received: from localhost ([127.0.0.1]:44797 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sKPKo-0008O1-3R
	for submit <at> debbugs.gnu.org; Thu, 20 Jun 2024 17:28:46 -0400
Received: from frenzy.freefriends.org ([198.99.81.75]:40818
 helo=freefriends.org) by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <karl@HIDDEN>) id 1sKPKl-0008Nq-FI
 for 71672 <at> debbugs.gnu.org; Thu, 20 Jun 2024 17:28:44 -0400
X-Envelope-From: karl@HIDDEN
Received: from freefriends.org (localhost [127.0.0.1])
 by freefriends.org (8.16.1/8.16.1) with ESMTPS id 45KLSXM71079063
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);
 Thu, 20 Jun 2024 15:28:33 -0600
Received: (from apache@localhost)
 by freefriends.org (8.16.1/8.14.7/Submit) id 45KLSX9d1079062;
 Thu, 20 Jun 2024 15:28:33 -0600
Date: Thu, 20 Jun 2024 15:28:33 -0600
Message-Id: <202406202128.45KLSX9d1079062@HIDDEN>
From: Karl Berry <karl@HIDDEN>
In-Reply-To: <9253a3a6-43c4-4148-bc9e-8426ab93068c@HIDDEN>
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Collin, Zack - 

    > Shouldn't AM_PATH_PYTHON check for the python3 command before python?

    Yes it should.

That seems like a huge change to make. I understand the reasoning, given
the world of Python, but the goal of "don't break existing projects"
argues against it.

    Note that PEP 394 is dangerously incorrect on one point: a system
    where /usr/bin/python and/or the bare 'python' command invoke
    Python3 is a misconfigured system

Nevertheless, that is the reality on Red Hat(-derived) 9 systems.
I don't know about any others.

    a huge volume of Python 2-only scripts out there in the wild 

Right.

    assuming people who use AM_PATH_PYTHON with current versions of
    Automake *want* the Python 3 interpreter, for the most part

That feels like an awfully big assumption to me. Ever since its inception,
Automake has looked for "python" first. We will surely be breaking many
existing projects if we change that default -- all the ones that are
still using Python 2, for starters.

Python created this insoluble problem. As far as I can see, we can't fix
it. People will just have to set PYTHON if they need to a force a
version different from the system, seems to me.

I can imagine preferring "python3" to "python" in the future, but this
seems like too big of a change to make at the very end (I hope) of the
pretest cycle. I think it would be better to make it well in advance of
the next release and try to garner feedback on the inevitable problems
that will result. --thanks, karl.




Message sent to automake-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#71672] [PATCH] python: Prefer python3 over python
Resent-From: Collin Funk <collin.funk1@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: automake-patches@HIDDEN
Resent-Date: Fri, 21 Jun 2024 00:53:01 +0000
Resent-Message-ID: <handler.71672.B71672.17189311292844 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 71672
X-GNU-PR-Package: automake-patches
X-GNU-PR-Keywords: patch
To: Karl Berry <karl@HIDDEN>, zack@HIDDEN
Cc: 71672 <at> debbugs.gnu.org
Received: via spool by 71672-submit <at> debbugs.gnu.org id=B71672.17189311292844
          (code B ref 71672); Fri, 21 Jun 2024 00:53:01 +0000
Received: (at 71672) by debbugs.gnu.org; 21 Jun 2024 00:52:09 +0000
Received: from localhost ([127.0.0.1]:50423 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sKSVc-0000jo-Uy
	for submit <at> debbugs.gnu.org; Thu, 20 Jun 2024 20:52:09 -0400
Received: from mail-pg1-f169.google.com ([209.85.215.169]:50618)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <collin.funk1@HIDDEN>) id 1sKSVa-0000jN-Nc
 for 71672 <at> debbugs.gnu.org; Thu, 20 Jun 2024 20:52:07 -0400
Received: by mail-pg1-f169.google.com with SMTP id
 41be03b00d2f7-6e7b121be30so1149595a12.1
 for <71672 <at> debbugs.gnu.org>; Thu, 20 Jun 2024 17:52:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1718931057; x=1719535857; darn=debbugs.gnu.org;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :from:to:cc:subject:date:message-id:reply-to;
 bh=IuEAFXFVs0cLz/qdvWbl4coVssT5k5Bu2Bb/GfnOAIY=;
 b=gqHH2KipAKb21jj7EVpHxFpYXYcKBcabxHCaMtiudXWJJ9a4AvRLIHWSgYVIxh2PUh
 XZ00W4GEkC4UErsnJ9DRlL6Ezm9E/B19ZsJdt0MXcI1eEr1ddUXxM1vd4RX/LAVdNS3H
 5Wfe4Uh97C+VHoCZR1YbyFTCw7gLBujSSMviyu0FOx0CpX/ZK9FL5UUTuNwIg7JKp4RD
 xl1f2aiLp2D2GA/oP+ZdwFhI4QyV2SGuTn3JsD2wmJAvNtTGQsO09YY7QNkz3wD8Irvo
 aF703EUbD0ZAadNYqZqmGYaZviznA1GccWoOI8XC+h3cOS13B8Q1HTzew3DCGJd6xezV
 bEog==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1718931057; x=1719535857;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=IuEAFXFVs0cLz/qdvWbl4coVssT5k5Bu2Bb/GfnOAIY=;
 b=NA5a2oBX6QGGqu5q3K2V6qNlTi7v9skuiMYlw9EUwVydbYWbcVNv+E5QEk5uoM0/tl
 +jhrWNSS5LRQ+1jnSidfzq6IhW6VTrDQN1bet2gATEh4JSFq1cmkMrdPZWcvJE7UTyHt
 zFMsaMS/XG0qXlIfbaZBaqKp4qKemOjCTTGFceA10B0Iylqm1REzmo45wGhOBXPt9DoA
 Bc6aLbT21JbR+bf3tpABdiNUrxbzolsM81lpwR1MleuY80FiSlyBL9U9K6Pu5gkYHMcr
 +pG9uODvTm9KrsKXqdQGd1BHLrZ8KUckEgyuUrprZQy6MoLx95uhbBVu+wsZZ8x/R3Of
 5bOQ==
X-Gm-Message-State: AOJu0YwCebhnsHoP/XLZh5iYxzJXDmk2QbmKmh5k8WTFq5xfnkVgL2yB
 hp+pVTucWiyc/OcuMTALmILWR/164jCJKoLCkRtbOzSwhHO6Kpv8
X-Google-Smtp-Source: AGHT+IGXeyKfV32W4qVzlUvHiaolJtOr6iRcPyl0MBEuCApphb8lyoKa2gtCi1N6GF2Y+vuB9pH3JA==
X-Received: by 2002:a17:90a:df07:b0:2c1:ebc4:4f1f with SMTP id
 98e67ed59e1d1-2c7b5d56b91mr6625470a91.33.1718931056620; 
 Thu, 20 Jun 2024 17:50:56 -0700 (PDT)
Received: from [192.168.1.14] (c-73-189-213-139.hsd1.ca.comcast.net.
 [73.189.213.139]) by smtp.gmail.com with ESMTPSA id
 98e67ed59e1d1-2c819dd0cf7sm305605a91.48.2024.06.20.17.50.55
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Thu, 20 Jun 2024 17:50:56 -0700 (PDT)
Message-ID: <cee37283-3b44-4010-98e8-8a9674e85019@HIDDEN>
Date: Thu, 20 Jun 2024 17:50:54 -0700
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
References: <202406202128.45KLSX9d1079062@HIDDEN>
Content-Language: en-US
From: Collin Funk <collin.funk1@HIDDEN>
In-Reply-To: <202406202128.45KLSX9d1079062@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.2 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)

Karl Berry wrote:
> I can imagine preferring "python3" to "python" in the future, but this
> seems like too big of a change to make at the very end (I hope) of the
> pretest cycle. I think it would be better to make it well in advance of
> the next release and try to garner feedback on the inevitable problems
> that will result. --thanks, karl.

Sounds reasonable to me. It was just something I stumbled upon last
night. I thought the intention was to prioritize python 3.X which
would cause problems using "python" first. We can just leave this bug
open or something until there is feedback and no release rush.

Collin




Message sent to automake-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#71672] [PATCH] python: Prefer python3 over python
References: <8a243d12-4f25-4912-aa1f-b6f8c3ff4d2d@HIDDEN>
Resent-From: Karl Berry <karl@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: automake-patches@HIDDEN
Resent-Date: Fri, 21 Jun 2024 22:13:02 +0000
Resent-Message-ID: <handler.71672.B71672.171900796626895 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 71672
X-GNU-PR-Package: automake-patches
X-GNU-PR-Keywords: patch
To: collin.funk1@HIDDEN
Cc: zack@HIDDEN, 71672 <at> debbugs.gnu.org
Received: via spool by 71672-submit <at> debbugs.gnu.org id=B71672.171900796626895
          (code B ref 71672); Fri, 21 Jun 2024 22:13:02 +0000
Received: (at 71672) by debbugs.gnu.org; 21 Jun 2024 22:12:46 +0000
Received: from localhost ([127.0.0.1]:43983 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sKmUw-0006zi-8q
	for submit <at> debbugs.gnu.org; Fri, 21 Jun 2024 18:12:46 -0400
Received: from frenzy.freefriends.org ([198.99.81.75]:49470
 helo=freefriends.org) by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <karl@HIDDEN>) id 1sKmUu-0006zZ-2W
 for 71672 <at> debbugs.gnu.org; Fri, 21 Jun 2024 18:12:44 -0400
X-Envelope-From: karl@HIDDEN
Received: from freefriends.org (localhost [127.0.0.1])
 by freefriends.org (8.16.1/8.16.1) with ESMTPS id 45LMCZTg045069
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);
 Fri, 21 Jun 2024 16:12:35 -0600
Received: (from apache@localhost)
 by freefriends.org (8.16.1/8.14.7/Submit) id 45LMCYh0045068;
 Fri, 21 Jun 2024 16:12:34 -0600
Date: Fri, 21 Jun 2024 16:12:34 -0600
Message-Id: <202406212212.45LMCYh0045068@HIDDEN>
From: Karl Berry <karl@HIDDEN>
In-Reply-To: <cee37283-3b44-4010-98e8-8a9674e85019@HIDDEN>
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

    I thought the intention was to prioritize python 3.X which
    would cause problems using "python" first.

Yes ... but I feel strongly that we should try very hard not to break
existing configure setups.

It occurs to me that we could allow maintainers to specify p3-searching
options in their configure.ac, like

AM_PYTHON_OPTS(python3-check-first python-check-omit)

(Or additional args to AM_PATH_PYTHON, whatever.)

That wouldn't have any compatibility issues, and would allow maintainers
to control what gets looked for, for packages that need to force python3.
(Other options could force looking for p2 first.)

Would that make sense? --thanks, karl.




Message sent to automake-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#71672] [PATCH] python: Prefer python3 over python
Resent-From: Collin Funk <collin.funk1@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: automake-patches@HIDDEN
Resent-Date: Sat, 22 Jun 2024 01:59:01 +0000
Resent-Message-ID: <handler.71672.B71672.171902151914643 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 71672
X-GNU-PR-Package: automake-patches
X-GNU-PR-Keywords: patch
To: Karl Berry <karl@HIDDEN>
Cc: zack@HIDDEN, 71672 <at> debbugs.gnu.org
Received: via spool by 71672-submit <at> debbugs.gnu.org id=B71672.171902151914643
          (code B ref 71672); Sat, 22 Jun 2024 01:59:01 +0000
Received: (at 71672) by debbugs.gnu.org; 22 Jun 2024 01:58:39 +0000
Received: from localhost ([127.0.0.1]:44075 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sKq1X-0003o7-7Q
	for submit <at> debbugs.gnu.org; Fri, 21 Jun 2024 21:58:39 -0400
Received: from mail-pf1-f170.google.com ([209.85.210.170]:51449)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <collin.funk1@HIDDEN>) id 1sKq1U-0003ns-8n
 for 71672 <at> debbugs.gnu.org; Fri, 21 Jun 2024 21:58:37 -0400
Received: by mail-pf1-f170.google.com with SMTP id
 d2e1a72fcca58-7066a3229f4so19564b3a.2
 for <71672 <at> debbugs.gnu.org>; Fri, 21 Jun 2024 18:58:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1719021450; x=1719626250; darn=debbugs.gnu.org;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :from:to:cc:subject:date:message-id:reply-to;
 bh=hEeVvzmWbweB2lQEAaIK9vJavE7Q9DvWuFr6lhvmsDg=;
 b=Fmc2pDpGgrqNGMhzHeUNDwI0EwzB9jOWOttpkCmxr4+DBbbZNPRHU7tn1mWa4OKnfq
 mh97IMQXyIRxXWYcTzQbslxFwI7FiVWEyK+DkKMAU1M8R8ewdRnn15omw+sUl7hnEX1e
 UGKqmKCWxbBLnqeVHnLzrqm7Ebd1+J3IF/N65E++3vOf5ECgjovpSKyVIuQwAD5+UL4H
 A2PajmTw8UM03hEZUEtmAjdXZjqottDHlrk9EfnobPE9J4Vchy/6bJIgwBordOf20PQt
 NFfsvmHYu7wFB03ibitUOSuR6dI62RGOqhQ2dRNEnknxEwIQlz8C8HRXlOWwwBRMcORi
 QdEQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1719021450; x=1719626250;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=hEeVvzmWbweB2lQEAaIK9vJavE7Q9DvWuFr6lhvmsDg=;
 b=JIH3MsNRr9843QpDlnQ5xQJd33axPaWgfrYqhgAE2sf55c+y66jTM009MkcSh0B62z
 cLPyDy/v5UcaxUHWrOt6LgXtSxR7gOB8YremuNU6u0wa8EZW+OKWyTMUwrKrExvyWee7
 gY/L0Vyc+XnEJyZvz9/AKYYYwKuZpZQ3l+Z1Pd/vNJSkYr41JD4W4jmhOzZ4ZBh3NPzH
 MmrYzIw8YVI9BkJ3oqoECpRIrYd75nFRwlbxJUbcPL2BPljwc5wH7ALQ6a6GTXtZ4fLF
 qOLElBx/NcwK9JQ2phG4lGx3/Kz5xWareo+ApZhAzMzSxoT37wyF0iwiwovy2ua3Wwq4
 q5dQ==
X-Forwarded-Encrypted: i=1;
 AJvYcCXEnd4N6+z7pIeFEkrRSKzjTGBBNQPnJhQmQWGGEyKkoROZ3aenlNbjSgdN69LQiU4ZdSbMUOUfxzGSpJiy40mXRcPoVc0=
X-Gm-Message-State: AOJu0Yy5ofaFoCO1Ne6fRlp/TFCyaEtjYgqFRHsIQOxWhG2abHV5mmLb
 NiIQ867AUIIT7OiKXf9+fqO6U7G+J/EUXLfcc81XnvOdPH70JOm/
X-Google-Smtp-Source: AGHT+IFVIOBIJ+4WI2YUvBnn1HL4/Dhki/IlwenhpVfeV+A3BWdE4BjzBk1/Dkdu0YPWdtFjs5htOA==
X-Received: by 2002:a05:6a20:4c82:b0:1b8:94a0:4a65 with SMTP id
 adf61e73a8af0-1bcbb5cd4bcmr9478278637.36.1719021450508; 
 Fri, 21 Jun 2024 18:57:30 -0700 (PDT)
Received: from [192.168.1.14] (c-73-189-213-139.hsd1.ca.comcast.net.
 [73.189.213.139]) by smtp.gmail.com with ESMTPSA id
 98e67ed59e1d1-2c819a623a3sm2290262a91.5.2024.06.21.18.57.29
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Fri, 21 Jun 2024 18:57:30 -0700 (PDT)
Message-ID: <e39bbe2a-eaed-4f6a-b535-00752e51a69b@HIDDEN>
Date: Fri, 21 Jun 2024 18:57:28 -0700
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
References: <202406212212.45LMCYh0045068@HIDDEN>
Content-Language: en-US
From: Collin Funk <collin.funk1@HIDDEN>
In-Reply-To: <202406212212.45LMCYh0045068@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.2 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)

Hi Karl,

Karl Berry wrote:
> Yes ... but I feel strongly that we should try very hard not to break
> existing configure setups.

Reasonable goal.

> It occurs to me that we could allow maintainers to specify p3-searching
> options in their configure.ac, like
> 
> AM_PYTHON_OPTS(python3-check-first python-check-omit)
> 
> (Or additional args to AM_PATH_PYTHON, whatever.)
> 
> That wouldn't have any compatibility issues, and would allow maintainers
> to control what gets looked for, for packages that need to force python3.
> (Other options could force looking for p2 first.)
> 
> Would that make sense?

Yes, I think that idea would work. Or maybe AM_PYTHON3_PATH which
requires Python3 so that the interface of the original macro isn't
changed.

Do you have any ideas/opinions Zach? I don't ever use Python 2 so
maybe my ideas for the interface are poor.

Collin




Message sent to automake-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#71672] [PATCH] python: Prefer python3 over python
References: <8a243d12-4f25-4912-aa1f-b6f8c3ff4d2d@HIDDEN>
Resent-From: Karl Berry <karl@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: automake-patches@HIDDEN
Resent-Date: Sat, 22 Jun 2024 21:11:01 +0000
Resent-Message-ID: <handler.71672.B71672.171909063617008 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 71672
X-GNU-PR-Package: automake-patches
X-GNU-PR-Keywords: patch
To: collin.funk1@HIDDEN
Cc: zack@HIDDEN, 71672 <at> debbugs.gnu.org
Received: via spool by 71672-submit <at> debbugs.gnu.org id=B71672.171909063617008
          (code B ref 71672); Sat, 22 Jun 2024 21:11:01 +0000
Received: (at 71672) by debbugs.gnu.org; 22 Jun 2024 21:10:36 +0000
Received: from localhost ([127.0.0.1]:60422 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sL80K-0004QF-Ft
	for submit <at> debbugs.gnu.org; Sat, 22 Jun 2024 17:10:36 -0400
Received: from frenzy.freefriends.org ([198.99.81.75]:44340
 helo=freefriends.org) by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <karl@HIDDEN>) id 1sL80I-0004Q2-Jh
 for 71672 <at> debbugs.gnu.org; Sat, 22 Jun 2024 17:10:35 -0400
X-Envelope-From: karl@HIDDEN
Received: from freefriends.org (localhost [127.0.0.1])
 by freefriends.org (8.16.1/8.16.1) with ESMTPS id 45MLAO0J120507
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);
 Sat, 22 Jun 2024 15:10:24 -0600
Received: (from apache@localhost)
 by freefriends.org (8.16.1/8.14.7/Submit) id 45MLAN4t120506;
 Sat, 22 Jun 2024 15:10:23 -0600
Date: Sat, 22 Jun 2024 15:10:23 -0600
Message-Id: <202406222110.45MLAN4t120506@HIDDEN>
From: Karl Berry <karl@HIDDEN>
In-Reply-To: <e39bbe2a-eaed-4f6a-b535-00752e51a69b@HIDDEN>
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

    Or maybe AM_PYTHON3_PATH which requires Python3 so that the
    interface of the original macro isn't changed.

My idea for having a separate options command was for the future: who
knows what incompatibilities python will create in the future. Other
options besides p3 vs p2 might be needed. Indeed, could already be
needed; I know of a couple packages that require 3.8 or later. -k




Message sent to automake-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#71672] [PATCH] python: Prefer python3 over python
Resent-From: "Zack Weinberg" <zack@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: automake-patches@HIDDEN
Resent-Date: Sun, 23 Jun 2024 02:12:02 +0000
Resent-Message-ID: <handler.71672.B71672.1719108719769 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 71672
X-GNU-PR-Package: automake-patches
X-GNU-PR-Keywords: patch
To: "Karl Berry" <karl@HIDDEN>, collin.funk1@HIDDEN
Cc: 71672 <at> debbugs.gnu.org
Received: via spool by 71672-submit <at> debbugs.gnu.org id=B71672.1719108719769
          (code B ref 71672); Sun, 23 Jun 2024 02:12:02 +0000
Received: (at 71672) by debbugs.gnu.org; 23 Jun 2024 02:11:59 +0000
Received: from localhost ([127.0.0.1]:39889 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sLChz-0000CL-ED
	for submit <at> debbugs.gnu.org; Sat, 22 Jun 2024 22:11:59 -0400
Received: from wfhigh3-smtp.messagingengine.com ([64.147.123.154]:50471)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <zack@HIDDEN>) id 1sLChx-0000C5-8g
 for 71672 <at> debbugs.gnu.org; Sat, 22 Jun 2024 22:11:58 -0400
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45])
 by mailfhigh.west.internal (Postfix) with ESMTP id CBE7918000A2;
 Sat, 22 Jun 2024 22:11:50 -0400 (EDT)
Received: from imap45 ([10.202.2.95])
 by compute5.internal (MEProxy); Sat, 22 Jun 2024 22:11:51 -0400
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=fm1; t=1719108710; x=1719195110; bh=JIwUx7d+lJ
 6lLXwdjjyMCJ8ZNenhgCXBfcvBg6hMbPc=; b=lNuFgQfmASVdu8w9ufkFbiYY6B
 iQMYZwmEStVO1EiWnI+629bqGAbNK7nKiNR4Qoap4iH0SGyigfhnLJsufP7OPeoc
 2KEwHZ7I1k4haLaoab8DEBh+J15OTSbtm2Ise827hVcDz0PVIfcIwq1IB1JEcvTK
 NHoy6v0wFyINGwSowqHw9REq6xpSvGaZTmUHwifl2Q/NXBLn+pwsZ3diu5fgoPix
 uM9j/r8q3003lQ3gdM9Vw7hue1y7FObAplzL4VsVFXAa2P3iKPIwYSPpNzJ/eSuh
 Drujsv6ibOn/9MdEXVMxg6YiDzmE/Mh7p4LjL4Ly149JvHETAk90VpclFYig==
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=
 fm2; t=1719108710; x=1719195110; bh=JIwUx7d+lJ6lLXwdjjyMCJ8ZNenh
 gCXBfcvBg6hMbPc=; b=Q6waJ0+1V0kECt/W7O2sodRcI79Mcu/tyl7HRnbe0EJx
 dzJ1FB8BplSHJUUkbbkmDL3hwrlP9w14icvYSKz2FqYzhg8ZNTSixUFTbv5Gkbua
 JO1/ExycyD0QbN1po+f8+llPL/Kiablu6iokQ54fVrKCWekWYAQeAGymZDWhnskH
 gWYFfFZfmFzpORqI4Qkd682iEr4M/vfIYH+TX2EFxyff/qhWs/v8Ek+a7KPbQ7sa
 lyVwTCPcCru0GCa0x8EEQchu4bsYZg5+t+IwzgNFqCwNvuw4c3XRp5nT1Gmg0fw/
 uYNVt7nuguW2wy0h1PiEzBJm82tP79UjeouwZSaaYA==
X-ME-Sender: <xms:ZYR3ZhKq7hsekUAWrGJ1SnVUVArXBB6f-kd0XKc3lGi3sttZ5G-Ctg>
 <xme:ZYR3ZtKx-P2E-ZI_5EMkG8DGMKf_ktjurihRbY9bbQvt2aZGMfH_YJcVHiWYUmqBm
 2vUbv2eTGB-9esbgJk>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfeefkedgvdeiucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
 cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedfkggr
 tghkucghvghinhgsvghrghdfuceoiigrtghksehofihlfhholhhiohdrohhrgheqnecugg
 ftrfgrthhtvghrnhephfelfeehudfhleegheegjeevheeuieehvdfgueeuteetleeiieet
 heefhfeludeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh
 homhepiigrtghksehofihlfhholhhiohdrohhrgh
X-ME-Proxy: <xmx:ZYR3Zpu6npO1HLKGsjGTVlCf5OcEZCOK1aszUMJyC8KmiIzXjF9LVw>
 <xmx:ZYR3ZiYiBCzzrWekxtgxlgW3lXPL4DErc0uXA3wC6xvMGZLKxWM7xQ>
 <xmx:ZYR3ZoZyvB9SLr8j5nxxjv9H9rFIMnkIAMg6IFJwpE_96OzIShIL7g>
 <xmx:ZYR3ZmDDjxo5HKCyypRK__5Fj4RvoNIAIDXSYmjnPUFDGYQGapXpsg>
 <xmx:ZoR3ZnkKlaYH60NRCkQsAMu7ABv9CE66TmcOsdMkxAXUgh9CgGNu0daN>
Feedback-ID: i876146a2:Fastmail
Received: by mailuser.nyi.internal (Postfix, from userid 501)
 id AF8D6272007F; Sat, 22 Jun 2024 22:11:49 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.11.0-alpha0-522-ga39cca1d5-fm-20240610.002-ga39cca1d
MIME-Version: 1.0
Message-Id: <9306cfc3-94c0-4ec0-8a86-3e7e03fb3a14@HIDDEN>
In-Reply-To: <202406222110.45MLAN4t120506@HIDDEN>
References: <8a243d12-4f25-4912-aa1f-b6f8c3ff4d2d@HIDDEN>
 <202406222110.45MLAN4t120506@HIDDEN>
Date: Sun, 23 Jun 2024 02:11:29 +0000
From: "Zack Weinberg" <zack@HIDDEN>
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Here's what I think might be useful:

Add these three macros to Autoconf proper:

# AC_PYTHON_VERSION_RANGE_IFELSE([PROG], [MIN-VERSION], [MAX-VERSION = next-major],
#    [ACTION-IF-TRUE], [ACTION-IF-FALSE])
# ---------------------------------------------------------------------------------
# Run ACTION-IF-TRUE if the Python interpreter PROG has version >= MIN-VERSION
#  and < MAX_VERSION.  If MAX_VERSION is empty, it defaults to the next
#  major version after MIN-VERSION (e.g. 2.7 -> 3, 3.6 -> 4).
# Run ACTION-IF-FALSE otherwise.

# AC_PATH_PYTHON2([MINIMUM-VERSION], [VALUE-IF-NOT-FOUND])
# --------------------------------------------------------
# Find a Python 2 interpreter.  If MINIMUM-VERSION is not empty, it must be at
# least that version.  If one is found, set the substitution variable PYTHON2
# to the full pathname of the selected interpreter.  Otherwise set PYTHON2 to
# VALUE-IF-NOT-FOUND.  Does nothing else; in particular, does not do any of the
# additional checks and substitutions done by AM_PATH_PYTHON.

This one will try bare 'python'.

# AC_PATH_PYTHON3([MINIMUM-VERSION], [VALUE-IF-NOT-FOUND])
# --------------------------------------------------------
# Find a Python 3 interpreter.  If MINIMUM-VERSION is not empty, it must be at
# least that version.  If one is found, set the substitution variable PYTHON3
# to the full pathname of the selected interpreter.  Otherwise set PYTHON3 to
# VALUE-IF-NOT-FOUND.  Does nothing else; in particular, does not do any of the
# additional checks and substitutions done by AM_PATH_PYTHON.

This one will not.

Automake's python.m4 should also define these if they are not already defined.
Then, we split AM_PATH_PYTHON into the part that sets PYTHON, which is implemented
in terms of the above macros (but still looks for both 2 and 3) and the part that
does all the rest of it.  People who want a slightly more efficient v3-only configure
script can use AC_PATH_PYTHON3 + whatever the name of the new "all the rest of it"
macro is.

I think that should disentangle things reasonably well, but we should definitely
do this early rather than late in an automake release cycle, and seek out feedback
from existing users of AM_PATH_PYTHON.  What say you?

zw




Message sent to automake-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#71672] [PATCH] python: Prefer python3 over python
Resent-From: Collin Funk <collin.funk1@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: automake-patches@HIDDEN
Resent-Date: Sun, 23 Jun 2024 03:29:02 +0000
Resent-Message-ID: <handler.71672.B71672.17191133169918 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 71672
X-GNU-PR-Package: automake-patches
X-GNU-PR-Keywords: patch
To: Zack Weinberg <zack@HIDDEN>, Karl Berry <karl@HIDDEN>
Cc: 71672 <at> debbugs.gnu.org
Received: via spool by 71672-submit <at> debbugs.gnu.org id=B71672.17191133169918
          (code B ref 71672); Sun, 23 Jun 2024 03:29:02 +0000
Received: (at 71672) by debbugs.gnu.org; 23 Jun 2024 03:28:36 +0000
Received: from localhost ([127.0.0.1]:41990 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sLDu8-0002Zu-FV
	for submit <at> debbugs.gnu.org; Sat, 22 Jun 2024 23:28:36 -0400
Received: from mail-oi1-f171.google.com ([209.85.167.171]:53437)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <collin.funk1@HIDDEN>) id 1sLDu6-0002Ze-8Z
 for 71672 <at> debbugs.gnu.org; Sat, 22 Jun 2024 23:28:35 -0400
Received: by mail-oi1-f171.google.com with SMTP id
 5614622812f47-3d361cf5755so1897065b6e.2
 for <71672 <at> debbugs.gnu.org>; Sat, 22 Jun 2024 20:28:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1719113248; x=1719718048; darn=debbugs.gnu.org;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :from:to:cc:subject:date:message-id:reply-to;
 bh=4+lTL3S6aAbSUKtBzeHQlH37RLI25RsgKuXcZRUJf5c=;
 b=gPUd0wsPBNq2RgLWYycWct0PB8RirDLMyEGoCKmf3v8OcqPoOlteP8kXZtJ1aRvpie
 JYBiYTb0e/aft26C0qTMWwXh4eMVVFN/v1zLdZavM3gYuIpixh6z3FL93qdtxR1xL5WM
 elbNtUKbPehj+5u2BpGy0N34gpIvPVTuw7VQQe5+R1khMfXUtu51syd6ukzFQP9v5v7g
 tiiAU9sI/kyqjC38gV7nIzaX0++cyJ+NUJJqLdGlwv0bkpUOk9RdoS+L0KmNlwJdVqc1
 gCpyOO2OmepASZPI7hY8HlEnNJaXgM64MlfVWtnwmVFFZ5c/Frrdn8I/NdJAXKb+unl8
 xdCQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1719113248; x=1719718048;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:user-agent:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=4+lTL3S6aAbSUKtBzeHQlH37RLI25RsgKuXcZRUJf5c=;
 b=bagNxK92R9H1OgkVGJjI3p4M75adYah8QLyBTHsVLPj8RXcpS7ADVCqlJsvKyxR++H
 sMJguBZImO4f9wHMUEUuEcLAhiStZxfB0H2ysoCog7WVXwHxA+C3s4uhgJBrd5fvTP7O
 RZvMDy6pS5aZctGxWf/4uI7QKactJn/JpZvmGMNU4YEe+KJeksUR7H0adwOaZvNI/cmW
 QZoJkXijMPylSWIFBR5+mjA4a/NpC8RzNGg3xEoS3vglIdXAHkBm3fnMBhiiapuUB2HS
 6i8bqr9X/Bue3KxpXaiLQ927wB+EXNEBOD18O2K1VrX/5YOropkHIlCBnZrOkPqGa41J
 0bng==
X-Gm-Message-State: AOJu0YwVFII23mPAZtoS5I10uh69V/yNVAnuGu5wIvpDzm/55K8jB0Mq
 NsiviRApdD2jrsnEDF0/OzpRkSqeLa9mPm31oZJLC0nThp898BYq
X-Google-Smtp-Source: AGHT+IHVXPsNo0xHhhmCjWlOFiUodOsqMKpQyHJrxXbL2eItcgntimQ7zM//D4A/IfoSm33t0FgavA==
X-Received: by 2002:a05:6808:d52:b0:3d2:2773:581 with SMTP id
 5614622812f47-3d545a54d47mr1534438b6e.47.1719113248312; 
 Sat, 22 Jun 2024 20:27:28 -0700 (PDT)
Received: from [192.168.1.14] (c-73-189-213-139.hsd1.ca.comcast.net.
 [73.189.213.139]) by smtp.gmail.com with ESMTPSA id
 41be03b00d2f7-718b921af9csm1702821a12.68.2024.06.22.20.27.27
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Sat, 22 Jun 2024 20:27:27 -0700 (PDT)
Message-ID: <9c07ed17-e056-4a41-acf0-d475240ab45c@HIDDEN>
Date: Sat, 22 Jun 2024 20:27:25 -0700
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
References: <8a243d12-4f25-4912-aa1f-b6f8c3ff4d2d@HIDDEN>
 <202406222110.45MLAN4t120506@HIDDEN>
 <9306cfc3-94c0-4ec0-8a86-3e7e03fb3a14@HIDDEN>
Content-Language: en-US
From: Collin Funk <collin.funk1@HIDDEN>
In-Reply-To: <9306cfc3-94c0-4ec0-8a86-3e7e03fb3a14@HIDDEN>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.2 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)

Zack Weinberg wrote:
> Automake's python.m4 should also define these if they are not already defined.
> Then, we split AM_PATH_PYTHON into the part that sets PYTHON, which is implemented
> in terms of the above macros (but still looks for both 2 and 3) and the part that
> does all the rest of it.  People who want a slightly more efficient v3-only configure
> script can use AC_PATH_PYTHON3 + whatever the name of the new "all the rest of it"
> macro is.
> 
> I think that should disentangle things reasonably well, but we should definitely
> do this early rather than late in an automake release cycle, and seek out feedback
> from existing users of AM_PATH_PYTHON.  What say you?

I like this idea and am happy to help after the upcoming release.

Maybe something like:

    AM_PYTHON_SETUP([PYTHON-EXECUTABLE])

Which does all the extra $(pyexecdir), $(pkgpyexecdir), etc. given the
python executable. It should be pretty simple to move all the code
from AM_PATH_PYTHON to that separate macro since it should run on all
supported versions of Python (2 and 3).

Collin




Message sent to automake-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#71672] [PATCH] python: Prefer python3 over python
References: <8a243d12-4f25-4912-aa1f-b6f8c3ff4d2d@HIDDEN>
Resent-From: Karl Berry <karl@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: automake-patches@HIDDEN
Resent-Date: Sun, 23 Jun 2024 21:19:01 +0000
Resent-Message-ID: <handler.71672.B71672.17191774926458 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 71672
X-GNU-PR-Package: automake-patches
X-GNU-PR-Keywords: patch
To: zack@HIDDEN
Cc: 71672 <at> debbugs.gnu.org, collin.funk1@HIDDEN
Received: via spool by 71672-submit <at> debbugs.gnu.org id=B71672.17191774926458
          (code B ref 71672); Sun, 23 Jun 2024 21:19:01 +0000
Received: (at 71672) by debbugs.gnu.org; 23 Jun 2024 21:18:12 +0000
Received: from localhost ([127.0.0.1]:51478 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sLUbD-0001g5-VS
	for submit <at> debbugs.gnu.org; Sun, 23 Jun 2024 17:18:12 -0400
Received: from frenzy.freefriends.org ([198.99.81.75]:32818
 helo=freefriends.org) by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <karl@HIDDEN>) id 1sLUbB-0001fu-OM
 for 71672 <at> debbugs.gnu.org; Sun, 23 Jun 2024 17:18:10 -0400
X-Envelope-From: karl@HIDDEN
Received: from freefriends.org (localhost [127.0.0.1])
 by freefriends.org (8.16.1/8.16.1) with ESMTPS id 45NLHwSk194660
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);
 Sun, 23 Jun 2024 15:17:59 -0600
Received: (from apache@localhost)
 by freefriends.org (8.16.1/8.14.7/Submit) id 45NLHw5I194659;
 Sun, 23 Jun 2024 15:17:58 -0600
Date: Sun, 23 Jun 2024 15:17:58 -0600
Message-Id: <202406232117.45NLHw5I194659@HIDDEN>
From: Karl Berry <karl@HIDDEN>
In-Reply-To: <9306cfc3-94c0-4ec0-8a86-3e7e03fb3a14@HIDDEN>
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

    zw> Add these three macros to Autoconf proper:
    ...
    Automake's python.m4 should also define these if they are not
    already defined. Then, we split AM_PATH_PYTHON ...

Thanks Zack. It all sounds good to me.

    definitely do this early rather than late in an automake release
    cycle, and seek out feedback from existing users of AM_PATH_PYTHON.
    What say you?

I say +1 :).

    cf> I like this idea and am happy to help after the upcoming release.

Thanks Collin.

    Maybe something like:
        AM_PYTHON_SETUP([PYTHON-EXECUTABLE])

Sounds fine to me, at first blush.

My thought would be to add this stuff asap after the 1.17 release and
put out a 1.16.0.90 pretest purely for the purpose of "seeking
feedback", as you say, so users can give it a try without having other
unrelated changes. (I hope four-part version numbers don't cause problems.)

(Maybe along with Bruno's timestamp-fixing patch, again for feedback
purposes.)

So ... if either of you have time to work on implementing this, so it
can be pushed when ready, that would be great.

(Although in theory several branches are maintained in the automake repo
for purposes like this, in practice nothing but master has been used for
X years, and I myself have no time or interest in resurrecting others.)

Thanks! -k




Message sent to automake-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#71672] [PATCH] python: Prefer python3 over python
References: <8a243d12-4f25-4912-aa1f-b6f8c3ff4d2d@HIDDEN>
Resent-From: Karl Berry <karl@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: automake-patches@HIDDEN
Resent-Date: Mon, 24 Feb 2025 16:50:02 +0000
Resent-Message-ID: <handler.71672.B71672.174041574610350 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 71672
X-GNU-PR-Package: automake-patches
X-GNU-PR-Keywords: patch
To: zack@HIDDEN
Cc: 71672 <at> debbugs.gnu.org, collin.funk1@HIDDEN
Received: via spool by 71672-submit <at> debbugs.gnu.org id=B71672.174041574610350
          (code B ref 71672); Mon, 24 Feb 2025 16:50:02 +0000
Received: (at 71672) by debbugs.gnu.org; 24 Feb 2025 16:49:06 +0000
Received: from localhost ([127.0.0.1]:42284 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tmbdh-0002gn-KD
	for submit <at> debbugs.gnu.org; Mon, 24 Feb 2025 11:49:06 -0500
Received: from frenzy.freefriends.org ([198.99.81.75]:43138
 helo=freefriends.org)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <karl@HIDDEN>)
 id 1tmbde-0002gU-Of
 for 71672 <at> debbugs.gnu.org; Mon, 24 Feb 2025 11:49:03 -0500
X-Envelope-From: karl@HIDDEN
Received: from freefriends.org (localhost [127.0.0.1])
 by freefriends.org (8.16.1/8.16.1) with ESMTPS id 51OGmUH71099719
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);
 Mon, 24 Feb 2025 09:48:30 -0700
Received: (from apache@localhost)
 by freefriends.org (8.16.1/8.14.7/Submit) id 51OGmTUG1099718;
 Mon, 24 Feb 2025 09:48:29 -0700
Date: Mon, 24 Feb 2025 09:48:29 -0700
Message-Id: <202502241648.51OGmTUG1099718@HIDDEN>
From: Karl Berry <karl@HIDDEN>
In-Reply-To: <9306cfc3-94c0-4ec0-8a86-3e7e03fb3a14@HIDDEN>
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Returning to this issue of preferring python3, from last year:

    https://debbugs.gnu.org/cgi/bugreport.cgi?bug=71672
    
    Add these three macros to Autoconf proper:
    ..._PYTHON_...

Have they been added?

    I think that should disentangle things reasonably well, but we should
    definitely do this early rather than late in an automake release cycle,

I hope to put out the next automake pretest->release very soon. So I
guess whatever happens

    and seek out feedback from existing users of AM_PATH_PYTHON.

To be clear, the above suggested factoring-out won't (intentionally)
affect the behavior of AM_PATH_PYTHON, right? It will still look for
"python" first, and still do all the stuff it does. I want Automake to
stay as backward-compatible as possible. --thanks, karl.




Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 24 Feb 2025 16:49:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 24 11:49:05 2025
Received: from localhost ([127.0.0.1]:42282 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tmbdh-0002gk-BW
	for submit <at> debbugs.gnu.org; Mon, 24 Feb 2025 11:49:05 -0500
Received: from frenzy.freefriends.org ([198.99.81.75]:45452
 helo=freefriends.org)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <karl@HIDDEN>)
 id 1tmbde-0002gH-Op
 for control <at> debbugs.gnu.org; Mon, 24 Feb 2025 11:49:03 -0500
X-Envelope-From: karl@HIDDEN
X-Envelope-To: <control <at> debbugs.gnu.org>
Received: from freefriends.org (localhost [127.0.0.1])
 by freefriends.org (8.16.1/8.16.1) with ESMTPS id 51OGmTtU1099711
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT)
 for <control <at> debbugs.gnu.org>; Mon, 24 Feb 2025 09:48:29 -0700
Received: (from apache@localhost)
 by freefriends.org (8.16.1/8.14.7/Submit) id 51OGmTsx1099710;
 Mon, 24 Feb 2025 09:48:29 -0700
Date: Mon, 24 Feb 2025 09:48:29 -0700
Message-Id: <202502241648.51OGmTsx1099710@HIDDEN>
From: Karl Berry <karl@HIDDEN>
To: control <at> debbugs.gnu.org
Subject: Re: [bug#71672] [PATCH] python: Prefer python3 over python
In-Reply-To: <9306cfc3-94c0-4ec0-8a86-3e7e03fb3a14@HIDDEN>
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

tags 71672 - patch




Message sent to automake-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#71672] bug#17811: RFE: build against multiple python stacks
References: <8a243d12-4f25-4912-aa1f-b6f8c3ff4d2d@HIDDEN>
Resent-From: Karl Berry <karl@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: automake-patches@HIDDEN
Resent-Date: Mon, 24 Feb 2025 23:48:02 +0000
Resent-Message-ID: <handler.71672.B71672.174044083525769 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 71672
X-GNU-PR-Package: automake-patches
X-GNU-PR-Keywords: 
To: praiskup@HIDDEN
Cc: 17811 <at> debbugs.gnu.org, 71672 <at> debbugs.gnu.org
Received: via spool by 71672-submit <at> debbugs.gnu.org id=B71672.174044083525769
          (code B ref 71672); Mon, 24 Feb 2025 23:48:02 +0000
Received: (at 71672) by debbugs.gnu.org; 24 Feb 2025 23:47:15 +0000
Received: from localhost ([127.0.0.1]:43456 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tmiAM-0006hX-LV
	for submit <at> debbugs.gnu.org; Mon, 24 Feb 2025 18:47:15 -0500
Received: from frenzy.freefriends.org ([198.99.81.75]:46060
 helo=freefriends.org)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <karl@HIDDEN>)
 id 1tmiAC-0006h1-8K; Mon, 24 Feb 2025 18:47:04 -0500
X-Envelope-From: karl@HIDDEN
Received: from freefriends.org (localhost [127.0.0.1])
 by freefriends.org (8.16.1/8.16.1) with ESMTPS id 51ONkVUa1124394
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);
 Mon, 24 Feb 2025 16:46:31 -0700
Received: (from apache@localhost)
 by freefriends.org (8.16.1/8.14.7/Submit) id 51ONkUtO1124393;
 Mon, 24 Feb 2025 16:46:30 -0700
Date: Mon, 24 Feb 2025 16:46:30 -0700
Message-Id: <202502242346.51ONkUtO1124393@HIDDEN>
From: Karl Berry <karl@HIDDEN>
In-Reply-To: <1418345.G04AnGCbNd@HIDDEN>
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Hi Pavel - back in 2014 (!), you suggested supporting python2 and python3
simultaneously: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=17811
Essentially by defining a new "python3" primary to sit alongside
"python".

Agreed that this is desirable in general. It's now being discussed in
  https://debbugs.gnu.org/cgi/bugreport.cgi?bug=71672
via a somewhat different approach. I'd worry about making python3 a new
primary, since 3 vs. 2 is not the only distinction needed, as has been
discussed.

I'm closing this one to reduce duplication in the bugdb, but feel free
to reply on 71762 or open a new issue if desired. --thanks, karl.




Message sent to automake-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#71672] [PATCH] python: Prefer python3 over python
Resent-From: Jacob Bachmeyer <jcb62281@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: automake-patches@HIDDEN
Resent-Date: Tue, 25 Feb 2025 04:05:01 +0000
Resent-Message-ID: <handler.71672.B71672.174045625822033 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 71672
X-GNU-PR-Package: automake-patches
X-GNU-PR-Keywords: 
To: Karl Berry <karl@HIDDEN>, zack@HIDDEN
Cc: 71672 <at> debbugs.gnu.org, collin.funk1@HIDDEN
Reply-To: jcb62281@HIDDEN
Received: via spool by 71672-submit <at> debbugs.gnu.org id=B71672.174045625822033
          (code B ref 71672); Tue, 25 Feb 2025 04:05:01 +0000
Received: (at 71672) by debbugs.gnu.org; 25 Feb 2025 04:04:18 +0000
Received: from localhost ([127.0.0.1]:44183 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tmmB8-0005jJ-1L
	for submit <at> debbugs.gnu.org; Mon, 24 Feb 2025 23:04:18 -0500
Received: from mail-oo1-xc2d.google.com ([2607:f8b0:4864:20::c2d]:51372)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <jcb62281@HIDDEN>)
 id 1tmmB4-0005iz-Hb
 for 71672 <at> debbugs.gnu.org; Mon, 24 Feb 2025 23:04:15 -0500
Received: by mail-oo1-xc2d.google.com with SMTP id
 006d021491bc7-5f6b65c89c4so1787568eaf.2
 for <71672 <at> debbugs.gnu.org>; Mon, 24 Feb 2025 20:04:14 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1740456248; x=1741061048; darn=debbugs.gnu.org;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:reply-to:user-agent:mime-version:date
 :message-id:from:to:cc:subject:date:message-id:reply-to;
 bh=eiTEjPHleaC4VTERDEeBZmprdDwBiT8lVCysDW2ie3I=;
 b=gCVhkrZQBFW3oPwnn/K+qsxBDu/Hh5sgxVtLf+SiZU3a4RbJ7V5/ECF0V4ZNSt2axK
 d3gtkug1FvDLKE2APvuM1gL3VmzmeNZYTidQNF0t0d+fRwmqeUedwcXTaSwApeMAYBm+
 WQTwromFNBcPzyteP0AnQhlCiF4NXjPapk/M1MXMPVJsxlrBsIyLSQ6qmsjOBFXkybQx
 AFCw0F3cBDiL6wit5nw7YxPHcQczGVgRj+9aSzWXgKguLcLD85efWpoDPj7OkATU2irF
 IvhTLFN7K9DDE35XXVbM+L1zIljkcdsCw0cvE1EOhISmjUBWwCtnyXA6Jv/0cTl5e449
 ylqg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1740456248; x=1741061048;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:cc:to:subject:reply-to:user-agent:mime-version:date
 :message-id:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=eiTEjPHleaC4VTERDEeBZmprdDwBiT8lVCysDW2ie3I=;
 b=NRAtHI+wofLtW6XpBP11iaYQZ4eFYTVNOWns52vwMdmM3//vIS7BMo/upQjvnoUGZ5
 /GXdbNkUB6+sBV8VyGfKIQQmJEC33ToQfEJZmCMM+AUnGcO5MUO5Vgq7nUH/R8SeDEuP
 iey2jbHeIieQC7A1CY9rYmwhmUCEHLPVjnSeaiTgM3eDfIzbPpKAMDl7+FkVMjEu43YC
 bjeCAUJIoPv81lD8u61gwbx6moCmXQDctHDt6W0PE2Mt84nd5ki54Z79ZEVVCGFW3XT4
 kviHJ56DbB5KJDLpzmkHswz7LAPqXYdbq5qckC/rl0x4JmgvjoQAyoaTcDwrfZIHv3Ws
 21yw==
X-Gm-Message-State: AOJu0YzpdEWdmZcQc56y0a8sPV6YKfwDF4UYqzqeTuK5fzAqFGKJ2tlb
 ib1DTev5ESbvD47rUlEEJUOnb/6QrLZ3AQClwPLhForRRL0Z6kaQ
X-Gm-Gg: ASbGncuFSfHNLQ5llCPLaRn/QGKcSK+DQkRKhteqqBJj0u+OM3tfjCI9YyVcgdOwpl8
 HKZRqL/dZkqAIXqGGEbg0rlqbKshwED/4zSgF5HqToi4HoKN12XPYcd2tET/VxB2oFpwnujUlpC
 6uyADSnbEexp0YtauWY8DdE2Q7c83b5d8QXeP1BAKGa/oJTWkXbPGoAh42RV/rfffhcBSPFClSV
 C66bLEvc5X4yYpsSOf9SngILI3/4+SeSU55AQTCqZWzE2OdiyuK2GixJsgyEqYj2GERgHYWNIRm
 vSGBFtkFd1OVud/XGPy/za8=
X-Google-Smtp-Source: AGHT+IHQrD5qRwIU3lkzGw1KkQnBtOcE0HU5zhOJbQE+gsqL+AbQriTAMGtwYc/64p5rNCgCeca3lQ==
X-Received: by 2002:a05:6871:552:b0:29e:503a:7ea3 with SMTP id
 586e51a60fabf-2c10f55bceemr1411164fac.36.1740456247294; 
 Mon, 24 Feb 2025 20:04:07 -0800 (PST)
Received: from [127.0.0.1] ([70.133.144.14]) by smtp.gmail.com with ESMTPSA id
 586e51a60fabf-2c1111f2e94sm213577fac.5.2025.02.24.20.04.06
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 24 Feb 2025 20:04:06 -0800 (PST)
Message-ID: <f09f8583-249a-4a5b-ace8-c05463d5c98c@HIDDEN>
Date: Mon, 24 Feb 2025 22:03:58 -0600
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
References: <8a243d12-4f25-4912-aa1f-b6f8c3ff4d2d@HIDDEN>
 <202502241648.51OGmTUG1099718@HIDDEN>
Content-Language: en-US
From: Jacob Bachmeyer <jcb62281@HIDDEN>
In-Reply-To: <202502241648.51OGmTUG1099718@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.5 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)

On 2/24/25 10:48, Karl Berry wrote:
> [...]
>
> To be clear, the above suggested factoring-out won't (intentionally)
> affect the behavior of AM_PATH_PYTHON, right? It will still look for
> "python" first, and still do all the stuff it does. I want Automake to
> stay as backward-compatible as possible.

The problem is that Python did *not* stay backward-compatible and in the 
worst way:  running a program written for Python2 on a Python3 
interpreter can silently corrupt data if I understand correctly.

At minimum, a request for an unversioned python should raise a warning 
(if not an error:  "specify Python2 or Python3") and AM_PATH_PYTHON 
should probably be deprecated in favor of separate AM_PATH_PYTHON2 and 
AM_PATH_PYTHON3.

I am insufficiently familiar with Python to say if we should have finer 
granularity than "Python3" and I am uncertain how compatible the 
different releases of Python3 actually are.


-- Jacob





Message sent to automake-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#71672] [PATCH] python: Prefer python3 over python
Resent-From: "Zack Weinberg" <zack@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: automake-patches@HIDDEN
Resent-Date: Tue, 25 Feb 2025 15:16:03 +0000
Resent-Message-ID: <handler.71672.B71672.174049652418335 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 71672
X-GNU-PR-Package: automake-patches
X-GNU-PR-Keywords: 
To: "Jacob Bachmeyer" <jcb62281@HIDDEN>, "Karl Berry" <karl@HIDDEN>
Cc: 71672 <at> debbugs.gnu.org, Collin Funk <collin.funk1@HIDDEN>
Received: via spool by 71672-submit <at> debbugs.gnu.org id=B71672.174049652418335
          (code B ref 71672); Tue, 25 Feb 2025 15:16:03 +0000
Received: (at 71672) by debbugs.gnu.org; 25 Feb 2025 15:15:24 +0000
Received: from localhost ([127.0.0.1]:47959 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tmwea-0004lf-Cg
	for submit <at> debbugs.gnu.org; Tue, 25 Feb 2025 10:15:24 -0500
Received: from fhigh-a7-smtp.messagingengine.com ([103.168.172.158]:45739)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <zack@HIDDEN>) id 1tmweX-0004jy-KU
 for 71672 <at> debbugs.gnu.org; Tue, 25 Feb 2025 10:15:22 -0500
Received: from phl-compute-05.internal (phl-compute-05.phl.internal
 [10.202.2.45])
 by mailfhigh.phl.internal (Postfix) with ESMTP id 1BE1811400B9;
 Tue, 25 Feb 2025 10:15:16 -0500 (EST)
Received: from phl-imap-05 ([10.202.2.95])
 by phl-compute-05.internal (MEProxy); Tue, 25 Feb 2025 10:15:16 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=owlfolio.org; h=
 cc:cc:content-transfer-encoding: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=fm3; t=1740496516;
 x=1740582916; bh=XEyGmZbMBX/YwCw+RKSJrH7uEK2sUC5gvH4jY/y0MHk=; b=
 U0eMbJ8bBjsyRNEuayrQNbdHBj3UC3pme5FurU+zmG/bYnFtitma2YLfJSINcLLo
 orvwAD8b06SgZ1MdMMkeI291UBBIm4ziEtJT04gzKl/jNNPPX5H2ZzVBRuy50eqw
 EyEg30VCtzbBxATpFZzU+ECfiuxL5/xM3/4jeVg+UTrxkX9Dy+ir13T1y575nskG
 dSkmau63LeYxjf0Fb740wY4n1gqdAfU5wNdi4jIsXhH8OOzZbNr6I6dYTqY2d8fU
 dU9fMWPpGq7MeCatMNJTZV7NqIEvpJRPudao3GWAGjve4rXjPHr2D2WZGjWXqOmK
 JJTpZRWttv9eezVaqu+TMg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :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-sender:x-me-sender:x-sasl-enc; s=fm1; t=1740496516; x=
 1740582916; bh=XEyGmZbMBX/YwCw+RKSJrH7uEK2sUC5gvH4jY/y0MHk=; b=N
 iGUhRdiNj7+N/LAVosZ5k8q51/WIMCeafZVZ5MpJIqyKGFOKLrAYC0UFrvsAvGPG
 4zhqFQ5eZqAMczrruj31G+S7EM5bX8C4oiirZDSOqTDtiNX+hBny3siu+whdur00
 lNIUl8f8TrcZCLFjJ2loifvZHcJA7kWz0812j7uWQbU2Gb3irUYvK8hRMM8O15tC
 PU/GR0dc3xD4GYRWAzxG2EshHmn+Ko5igyb/uCuYYj2hgKA0cA2tMbF4JSt5mcmg
 CqjKakuTY488gLw9Pf5RTobYsyQgS2qlfgewb9YSAlcvlJFy5H65Jxklhwkl3v0+
 kvptc9VyQubC31aotyGzA==
X-ME-Sender: <xms:g969Z7LPLJpPwh6xOmSLjp-KzGsd5WZoMK7ZCRqWGSB98dKmat_yNQ>
 <xme:g969Z_J2vANVwA4RP9dr9G9u_pJ_Jok3G1okRsSFJbQU5ao1IrI3cEMs6T1gH5pg8
 Yfib7aMx3dWYedMPaA>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdekvddtfecutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp
 uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg
 hnthhsucdlqddutddtmdenucfjughrpefoggffhffvvefkjghfufgtgfesthhqredtredt
 jeenucfhrhhomhepfdgkrggtkhcuhggvihhnsggvrhhgfdcuoeiirggtkhesohiflhhfoh
 hlihhordhorhhgqeenucggtffrrghtthgvrhhnpeffffeliefhkeefteehieeileeuffel
 gedvjefghffhhfehhefgtefhgeejudeuheenucevlhhushhtvghrufhiiigvpedtnecurf
 grrhgrmhepmhgrihhlfhhrohhmpeiirggtkhesohiflhhfohhlihhordhorhhgpdhnsggp
 rhgtphhtthhopeegpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopeejudeijedvse
 guvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepkhgrrhhlsehfrhgvvghfrhhi
 vghnughsrdhorhhgpdhrtghpthhtoheptgholhhlihhnrdhfuhhnkhdusehgmhgrihhlrd
 gtohhmpdhrtghpthhtohepjhgtsgeivddvkedusehgmhgrihhlrdgtohhm
X-ME-Proxy: <xmx:g969ZztplGQYaTkB0qN5axKKDlqXDmBXXs9qlUTOLhPlxcJWhhl7iw>
 <xmx:g969Z0Y8A5vARq4wJk6689CIWrb1NQeScXj9RWPZkVpOQd3f_RAuqQ>
 <xmx:g969ZyZSU2kVe2nqNiriPxT3NV6PeCZZmpUGat6N6qCL0Pr63Kx1hQ>
 <xmx:g969Z4C6NuTS9NQczJiphTimgRZG5fmXKY68DeOq8TfQPIDoImKdnQ>
 <xmx:hN69ZyHwC8PXIKKq97qfLUodJ_Qh6si8XkefJd7NmkEav-LSXe5w5x4z>
Feedback-ID: i876146a2:Fastmail
Received: by mailuser.phl.internal (Postfix, from userid 501)
 id B2B313020080; Tue, 25 Feb 2025 10:15:15 -0500 (EST)
X-Mailer: MessagingEngine.com Webmail Interface
MIME-Version: 1.0
Date: Tue, 25 Feb 2025 10:14:55 -0500
From: "Zack Weinberg" <zack@HIDDEN>
Message-Id: <aa824d1b-532d-4c94-9ddc-9755417812be@HIDDEN>
In-Reply-To: <f09f8583-249a-4a5b-ace8-c05463d5c98c@HIDDEN>
References: <8a243d12-4f25-4912-aa1f-b6f8c3ff4d2d@HIDDEN>
 <202502241648.51OGmTUG1099718@HIDDEN>
 <f09f8583-249a-4a5b-ace8-c05463d5c98c@HIDDEN>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

On Mon, Feb 24, 2025, at 11:03 PM, Jacob Bachmeyer wrote:
> On 2/24/25 10:48, Karl Berry wrote:
>> [...]
>>
>> To be clear, the above suggested factoring-out won't (intentionally)
>> affect the behavior of AM_PATH_PYTHON, right? It will still look for
>> "python" first, and still do all the stuff it does. I want Automake
>> to stay as backward-compatible as possible.
>
> The problem is that Python did *not* stay backward-compatible and in
> the worst way:=C2=A0 running a program written for Python2 on a Python3
> interpreter can silently corrupt data if I understand correctly.

Yes. It takes some doing, but I *have* seen people write Python2
programs with this characteristic without knowing it.

> At minimum, a request for an unversioned python should raise a warning
> (if not an error:=C2=A0 "specify Python2 or Python3") and AM_PATH_PYTH=
ON
> should probably be deprecated in favor of separate AM_PATH_PYTHON2 and
> AM_PATH_PYTHON3.

Agreed.  I would *like* to go a step farther and have AM_PATH_PYTHON*
bomb out if it detects that "python" on the PATH runs Python3, but
that would put us in direct conflict with a bunch of Linux distributions
so we probably shouldn't actually do that.

> I am insufficiently familiar with Python to say if we should have
> finer granularity than "Python3" and I am uncertain how compatible the
> different releases of Python3 actually are.

With all relatively recent Python 3 releases, you can have reasonably
high confidence that a program written against 3.x, that doesn't use thi=
rd-
party Python libraries, will work correctly with 3.y where y > x.  The
only exception I know about is that the core Python devs recently decided
to start removing "old, unmaintained" modules from the standard library.
Also, I'm not sure how far back "relatively recent" extends.

The reverse is not true; a program written for 3.x is very likely to not
work at all with 3.z where z < x.  There have been a *lot* of shiny new
features added to the language in each 3.x release.

The compatibility story is much worse when third-party libraries are inv=
olved,
but that's not AM_PATH_PYTHON's problem.

zw




Message sent to automake-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#71672] [PATCH] python: Prefer python3 over python
Resent-From: "Zack Weinberg" <zack@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: automake-patches@HIDDEN
Resent-Date: Tue, 25 Feb 2025 15:19:01 +0000
Resent-Message-ID: <handler.71672.B71672.174049670918755 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 71672
X-GNU-PR-Package: automake-patches
X-GNU-PR-Keywords: 
To: "Karl Berry" <karl@HIDDEN>
Cc: 71672 <at> debbugs.gnu.org, Collin Funk <collin.funk1@HIDDEN>
Received: via spool by 71672-submit <at> debbugs.gnu.org id=B71672.174049670918755
          (code B ref 71672); Tue, 25 Feb 2025 15:19:01 +0000
Received: (at 71672) by debbugs.gnu.org; 25 Feb 2025 15:18:29 +0000
Received: from localhost ([127.0.0.1]:47970 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tmwhZ-0004sR-Cc
	for submit <at> debbugs.gnu.org; Tue, 25 Feb 2025 10:18:29 -0500
Received: from fout-a3-smtp.messagingengine.com ([103.168.172.146]:54821)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <zack@HIDDEN>) id 1tmwhW-0004s5-SX
 for 71672 <at> debbugs.gnu.org; Tue, 25 Feb 2025 10:18:27 -0500
Received: from phl-compute-05.internal (phl-compute-05.phl.internal
 [10.202.2.45])
 by mailfout.phl.internal (Postfix) with ESMTP id 89D9013814EB;
 Tue, 25 Feb 2025 10:18:21 -0500 (EST)
Received: from phl-imap-05 ([10.202.2.95])
 by phl-compute-05.internal (MEProxy); Tue, 25 Feb 2025 10:18:21 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=owlfolio.org; h=
 cc:cc:content-transfer-encoding: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=fm3; t=1740496701;
 x=1740583101; bh=IW8ddUTdOK/FDQeDsxklglpKqz1UJYYWAWKny8r3Xa4=; b=
 bISeeWd04By7D1ugVrjX2P4EzL2PkvRlA2Nxuw357PyYGNmqAeXS6X7PxzIVwyeJ
 epCXoWzE7LOowjCddSzms7B7WmbPkALAyPZ5oDgaRi+qO3kPk/ck/71HcN3L831O
 M0+FL2w29ggbenu0wZuzYBSYFpeT0oWEVdnKG5jhsJCe1v9bPSjcQK6jM7yA3/3n
 Dm9OTyza3CwOILCiOT1aEl5fHm/JX4mhVrAM1amZyFjLHC0tSdm4jZqtHmZUy+2u
 9/7mdS4ipU8Y8malAPQjzOUlZYam6YPsCS9bcFs6Lxirg/lN6Pxg0NeFXPcBd0yU
 qT8Ec2W/VKQvlf+MrNiI1w==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :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-sender:x-me-sender:x-sasl-enc; s=fm1; t=1740496701; x=
 1740583101; bh=IW8ddUTdOK/FDQeDsxklglpKqz1UJYYWAWKny8r3Xa4=; b=e
 8vXgAFLXvU6DIpiZtK2+vdXt/0a7fuUwDD43drpW6SYKH4kz1IElTwAaQTAXH26Q
 kKubaA4fzgN2YVAS7QIIFnhgXwdfmjyT0zyjzS8c4BOuORW0K6susvlll28MIYWn
 xn9knmVW2V2mibRz/Kb+o1340MHla8X3wvOOg+bCVhkUne3dx2JIhea0wfVys0L4
 q3VM2Yx9FusaPidjWdl4wiyUaU3NzO2hSYUl9e/vVcmY688J5su2+lMSxydmXLdV
 QBqYNsko6iSPdxd8CUL1UQteGpHq8kUZOPQve1qfLuS3tMwj1IKxGr+Tc/s1A1RW
 WMX5zEsdaKa8RuEK4gHAg==
X-ME-Sender: <xms:Pd-9ZyxgmTpyYBxlAT5nuz31JHIhVx5qpSPGEhXevfMWAqACM3Jikg>
 <xme:Pd-9Z-SWO9joYQJGXlcbjNRa4tBCO0lgjJlpIXk0THkgTa9bwV0Oqe7S6V9Mx3Zal
 W9_IrkblPjQ42N4TfE>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdekvddtgecutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp
 uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg
 hnthhsucdlqddutddtmdenucfjughrpefoggffhffvvefkjghfufgtgfesthejredtredt
 tdenucfhrhhomhepfdgkrggtkhcuhggvihhnsggvrhhgfdcuoeiirggtkhesohiflhhfoh
 hlihhordhorhhgqeenucggtffrrghtthgvrhhnpeeghfevueeggeeftdetgfeiudeikefh
 leekieduvefgffdujeduhfekhfeigedtkeenucffohhmrghinhepghhnuhdrohhrghenuc
 evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpeiirggtkhes
 ohiflhhfohhlihhordhorhhgpdhnsggprhgtphhtthhopeefpdhmohguvgepshhmthhpoh
 huthdprhgtphhtthhopeejudeijedvseguvggssghughhsrdhgnhhurdhorhhgpdhrtghp
 thhtohepkhgrrhhlsehfrhgvvghfrhhivghnughsrdhorhhgpdhrtghpthhtoheptgholh
 hlihhnrdhfuhhnkhdusehgmhgrihhlrdgtohhm
X-ME-Proxy: <xmx:Pd-9Z0VvgGRh-c53v0iMuKeKdRMf5BshRwgL6qhBuLkV3HaqWmXT9w>
 <xmx:Pd-9Z4jKJt2-V_2Weulg59RFB5P_0ADdw54w0bS32aHDpR_Bg3rbxQ>
 <xmx:Pd-9Z0AwHuVyFMH76Tj5kelsFi78kkxliH_8n0r5eYLlPIk3CjIxgQ>
 <xmx:Pd-9Z5KnGin5_zzPNRnfEUJun2q7eMkKU3fGqIf9ls5E-8kzQ9jI7w>
 <xmx:Pd-9Z3MF5759RajeBmuKs85Un1n1nPrarazH7Y94Em_WW-ykTmqqYv4M>
Feedback-ID: i876146a2:Fastmail
Received: by mailuser.phl.internal (Postfix, from userid 501)
 id 317E33020080; Tue, 25 Feb 2025 10:18:21 -0500 (EST)
X-Mailer: MessagingEngine.com Webmail Interface
MIME-Version: 1.0
Date: Tue, 25 Feb 2025 10:18:00 -0500
From: "Zack Weinberg" <zack@HIDDEN>
Message-Id: <936eec5f-f662-4958-bc6f-321605038c2d@HIDDEN>
In-Reply-To: <202502241648.51OGmTUG1099718@HIDDEN>
References: <8a243d12-4f25-4912-aa1f-b6f8c3ff4d2d@HIDDEN>
 <202502241648.51OGmTUG1099718@HIDDEN>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

On Mon, Feb 24, 2025, at 11:48 AM, Karl Berry wrote:
> Returning to this issue of preferring python3, from last year:
>
>     https://debbugs.gnu.org/cgi/bugreport.cgi?bug=71672
>
>     Add these three macros to Autoconf proper: ..._PYTHON_...
>
> Have they been added?

They have not.  Regrettably, I have not had any time at all for Autoconf
work recently.

What does your schedule look like for the next Automake release?  This
specific thing is probably only a weekend's worth of work, so I might be
able to scare up the time for it.  However, I don't think I can do all
the rest of the work involved in putting out an Autoconf release anytime
in the near future.

zw




Message sent to automake-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#71672] [PATCH] python: Prefer python3 over python
References: <8a243d12-4f25-4912-aa1f-b6f8c3ff4d2d@HIDDEN>
Resent-From: Karl Berry <karl@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: automake-patches@HIDDEN
Resent-Date: Tue, 25 Feb 2025 22:08:02 +0000
Resent-Message-ID: <handler.71672.B71672.174052124029765 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 71672
X-GNU-PR-Package: automake-patches
X-GNU-PR-Keywords: 
To: zack@HIDDEN
Cc: 71672 <at> debbugs.gnu.org, collin.funk1@HIDDEN
Received: via spool by 71672-submit <at> debbugs.gnu.org id=B71672.174052124029765
          (code B ref 71672); Tue, 25 Feb 2025 22:08:02 +0000
Received: (at 71672) by debbugs.gnu.org; 25 Feb 2025 22:07:20 +0000
Received: from localhost ([127.0.0.1]:48767 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tn35E-0007k1-6N
	for submit <at> debbugs.gnu.org; Tue, 25 Feb 2025 17:07:20 -0500
Received: from frenzy.freefriends.org ([198.99.81.75]:50184
 helo=freefriends.org)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <karl@HIDDEN>)
 id 1tn35B-0007jn-Fv
 for 71672 <at> debbugs.gnu.org; Tue, 25 Feb 2025 17:07:18 -0500
X-Envelope-From: karl@HIDDEN
Received: from freefriends.org (localhost [127.0.0.1])
 by freefriends.org (8.16.1/8.16.1) with ESMTPS id 51PM6gKs1223904
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);
 Tue, 25 Feb 2025 15:06:42 -0700
Received: (from apache@localhost)
 by freefriends.org (8.16.1/8.14.7/Submit) id 51PM6gYW1223903;
 Tue, 25 Feb 2025 15:06:42 -0700
Date: Tue, 25 Feb 2025 15:06:42 -0700
Message-Id: <202502252206.51PM6gYW1223903@HIDDEN>
From: Karl Berry <karl@HIDDEN>
In-Reply-To: <936eec5f-f662-4958-bc6f-321605038c2d@HIDDEN>
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

    What does your schedule look like for the next Automake release?

I'm hoping to put out the first pretest tomorrow and 1.18 not long
after. So clearly this Python stuff needs to wait for another release.

Thanks for the quick reply. -k




Message sent to automake-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#71672] [PATCH] python: Prefer python3 over python
Resent-From: Collin Funk <collin.funk1@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: automake-patches@HIDDEN
Resent-Date: Tue, 25 Feb 2025 22:16:01 +0000
Resent-Message-ID: <handler.71672.B71672.174052173331421 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 71672
X-GNU-PR-Package: automake-patches
X-GNU-PR-Keywords: 
To: Karl Berry <karl@HIDDEN>
Cc: zack@HIDDEN, 71672 <at> debbugs.gnu.org
Received: via spool by 71672-submit <at> debbugs.gnu.org id=B71672.174052173331421
          (code B ref 71672); Tue, 25 Feb 2025 22:16:01 +0000
Received: (at 71672) by debbugs.gnu.org; 25 Feb 2025 22:15:33 +0000
Received: from localhost ([127.0.0.1]:48787 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tn3DA-0008Aj-JW
	for submit <at> debbugs.gnu.org; Tue, 25 Feb 2025 17:15:32 -0500
Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]:53604)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <collin.funk1@HIDDEN>)
 id 1tn3D8-0008AU-40
 for 71672 <at> debbugs.gnu.org; Tue, 25 Feb 2025 17:15:30 -0500
Received: by mail-pl1-x62c.google.com with SMTP id
 d9443c01a7336-22104c4de96so107648245ad.3
 for <71672 <at> debbugs.gnu.org>; Tue, 25 Feb 2025 14:15:30 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1740521723; x=1741126523; darn=debbugs.gnu.org;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=CDpiv3EWJh/0TxlMs2t7l0iC6YOM6Ip6N6PLG0VLNeo=;
 b=k+m5XhFZKgZsF75f6HX8EfWTQAy4h77QzfhGVF1rSKrebZ+8/4vYE27yalQAArOhG7
 vKQhqKF2Ewh2MAFlXjbULoYlckBtYzL2olsqa4lm8O8dlIOFqHCC3nEhRCQh53RCg8Hb
 D516OGjSKnQ9cM35wxdi2IjpB2QttmKtag4oo3ZDv8fXhvpV0oRd2hIn64jjKF11eWXU
 WFJX5owBknPDy+P2fw3KZDJ9xpfyec/16EjNzBP2gLiZ0x/J4IzMfvzeg8GF4nRpybyN
 nH9BB9uZaPLjHvqtDP+FHMQE2V455TvqixS6LunwptvSU4d6IwRbk/2RkNLPMcUW0fKk
 Xkaw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1740521723; x=1741126523;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=CDpiv3EWJh/0TxlMs2t7l0iC6YOM6Ip6N6PLG0VLNeo=;
 b=AGTwstlbQvEsMAi/uhgzX8k92JQf0JJfN/1yy50BPmEz25vJYHpW5+/V53LVBOzepn
 huOsY0enOwJQkBB4fi61wHmpeQ7i9EemXhQd5MIT2/R6J/x+PCexKgvbtPT7oNJ5QbA8
 jgKCGQsRcU5MOydHWEbXQ7Xg8cI017Tl5V3gM/QW8n0EhHl8/X4NPqh8YPZAxBKcFTJ8
 /9fMqg/NGkCAQRB/mhX+99GNzhYmohFHtcZS3k0oD9thlFhHFca+TuAVaLqBJIsBjFwi
 zEN0Vfoet4qcCn1sgAU0oDqjuPdzn7YFvYOCKuZHqv7r1sJbftlxrWp2v8e1pUITTi96
 9bVw==
X-Forwarded-Encrypted: i=1;
 AJvYcCUqFB3frDTS+ciit81rLCBBRh2GBVT/0BcHAj23gCUdOXlPfesl+R+qbsx5m9h1BCewiGfeww==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YyCak5fp9cYn1mBZKdOGJITANxxIy9LsAA++hYxT6HKehjtdDcu
 Kji7hZoatgS/PtInXeA1/FZuyWwiy1MSpyoSNP534asXGfH44s0Ifh5FzBpI
X-Gm-Gg: ASbGncua2tsIYpPhQSwj4DYToxogYwb7zuA4PyiAcuOnm4AattV/YYZFzJ7xozi4LBh
 eO0bckdph5bHvuXK/knjWdHYBqdH65qkPqQg3qMetYfHSybkJaBq/i3LKabrxH4U7XcCTZwiZUd
 p1fKzLZAyNgqFzq24cIuxs+1AdaQMWGzKc3ZpCXCYmJAGyRvPyeWda7i3dzsjMX7uucQhVCoKbp
 NpEexmgU/cScIltAbFHWeO64i5QZLVTm6eBAW2QpecWSdX/EAQ9ZPSzu8GjadiFIa6FcPhHpu0w
 Iv64Kx4SGnLvE2rbrDv6nc0oGk/1kHCQ9mnh2NRhZJ4tf8dEXRCkjCQ=
X-Google-Smtp-Source: AGHT+IFPQcl8qgP0puZUjrWFc5yQqjtuA3WnqSp+dY5SVTOGmL+Ikz6aQvqAbEvwktC3j1v/ZjldMg==
X-Received: by 2002:a05:6a21:6d8a:b0:1ee:d7b1:38b2 with SMTP id
 adf61e73a8af0-1f0fbff7613mr7496968637.3.1740521722566; 
 Tue, 25 Feb 2025 14:15:22 -0800 (PST)
Received: from fedora (c-73-93-224-2.hsd1.ca.comcast.net. [73.93.224.2])
 by smtp.gmail.com with ESMTPSA id
 41be03b00d2f7-aee6868952asm221985a12.18.2025.02.25.14.15.21
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 25 Feb 2025 14:15:22 -0800 (PST)
From: Collin Funk <collin.funk1@HIDDEN>
In-Reply-To: <202502252206.51PM6gYW1223903@HIDDEN>
References: <202502252206.51PM6gYW1223903@HIDDEN>
Date: Tue, 25 Feb 2025 14:15:20 -0800
Message-ID: <87h64hacxz.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.3 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

Hi Karl,

Karl Berry <karl@HIDDEN> writes:

> I'm hoping to put out the first pretest tomorrow and 1.18 not long
> after. So clearly this Python stuff needs to wait for another release.

Thanks for mentioning this again. That plan sounds fine. Python packages
seem to have their own packaging stuff that works well so there is no
rush. However, I still think these would be nice for projects that might
use python scripts, etc.

I had a look at implementing them yesterday, but my m4 talent is
lacking. :)

Collin





Last modified: Tue, 25 Feb 2025 22:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.