From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#70722: [PATCH] ; Migrate to python3 for (package-test-update-archives-async) Date: Thu, 09 May 2024 11:33:08 +0300 Message-ID: <86bk5f75bv.fsf@gnu.org> References: <86sez0jb7i.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39170"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70722@debbugs.gnu.org To: Lin Sun , kobarity Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 09 10:34:52 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s4zEq-0009sf-3e for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 May 2024 10:34:52 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s4zEc-0000Sx-A5; Thu, 09 May 2024 04:34:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s4zEa-0000Si-BU for bug-gnu-emacs@gnu.org; Thu, 09 May 2024 04:34:36 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s4zEa-0007hg-2H for bug-gnu-emacs@gnu.org; Thu, 09 May 2024 04:34:36 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s4zEz-00050I-UP for bug-gnu-emacs@gnu.org; Thu, 09 May 2024 04:35:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 May 2024 08:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70722 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 70722-submit@debbugs.gnu.org id=B70722.171524365119211 (code B ref 70722); Thu, 09 May 2024 08:35:01 +0000 Original-Received: (at 70722) by debbugs.gnu.org; 9 May 2024 08:34:11 +0000 Original-Received: from localhost ([127.0.0.1]:54004 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s4zEB-0004zn-51 for submit@debbugs.gnu.org; Thu, 09 May 2024 04:34:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45238) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s4zE8-0004zd-Kg for 70722@debbugs.gnu.org; Thu, 09 May 2024 04:34:09 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s4zDd-0007K0-DV; Thu, 09 May 2024 04:33:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=CqyzUkqVZVTRRW8ZjYnUD7s12ZFU0r0KAZUVLSk1epE=; b=DWAIMusEwe8+6imSvrHj 8G4L+ivIlP6TuK6WdtqZ/WmkvORG+j7qx3YcJ47c36TNijuZI83A3E1gCM1nbxg7qgOl6+UEsAYvY f+3p/zBqwfSFBelbfZaj2vDjPKS8nzBtilzvVNbCgc1jv7ovN6mU+RuOt9Uo03W03Nww5XWIlDBDs MfUObtsXHeyxwUvclN2pfnQ+EN3KugGx/9zudejlvCr0W7GZ5Dw5JtVHl2PjGKjVP5B4DnZEo86Le HvjgSnQquF9FjDU8lMfApzaew8BI1OV9CDBI07MLW9kHkTyOxImrCTjpcmA4G8k/gb0d8ZP8l9BrR DuLTbT3Wb0IcUQ==; In-Reply-To: (message from Lin Sun on Mon, 6 May 2024 00:28:07 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:284744 Archived-At: > From: Lin Sun > Date: Mon, 6 May 2024 00:28:07 +0000 > Cc: 70722@debbugs.gnu.org > > On Thu, May 2, 2024 at 6:55 PM Eli Zaretskii wrote: > > > > > From: Lin Sun > > > Date: Thu, 2 May 2024 18:11:04 +0000 > > > > > > The test case "package-test-update-archives-async" still tries to > > > search "python2" for testing, while python2 was at the end of its life > > > years ago. > > > So move the test case from python2 to python3. > > > > I'd prefer to make the test support both Python 2.x and Python 3.x. > > The fact that python.org end-of-life'd Python 2 doesn't mean we have > > to jump to attention and follow suit. Old systems might still have > > Python 2 installed, and there's no need to drop them. > > > > I do agree that we should try looking for Python 3 first, and only > > afterwards for Python 2. > > > > Also, I think the test should start by looking for just "python", > > before the versioned variants. > > > > E.g., on my system (executable-find "python3") returns nil, although I > > have Python 3.x installed -- but it's installed under the name > > "python". > Thanks for the comment, and it's true that python2 will still exist > for many years. > And I had changed the test case to adapt python/python3/python2 automatically. > Please help review the new patch. Thanks. Thanks. kobarity, any comments, or should I install this?