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--
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
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.