GNU bug report logs - #71672
[PATCH] python: Prefer python3 over python

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: automake-patches; Reported by: Collin Funk <collin.funk1@HIDDEN>; Keywords: patch; dated Thu, 20 Jun 2024 09:51:01 UTC; Maintainer for automake-patches is automake-patches@HIDDEN.

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


Received: (at submit) by debbugs.gnu.org; 20 Jun 2024 09:50:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 20 05:50:36 2024
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>
Subject: [PATCH] python: Prefer python3 over python
To: automake-patches@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-Debbugs-Envelope-To: submit
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--




Acknowledgement sent to Collin Funk <collin.funk1@HIDDEN>:
New bug report received and forwarded. Copy sent to automake-patches@HIDDEN. Full text available.
Report forwarded to automake-patches@HIDDEN:
bug#71672; Package automake-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 20 Jun 2024 10:00:02 UTC

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