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, 02 May 2024 21:54:57 +0300 Message-ID: <86sez0jb7i.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24543"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70722@debbugs.gnu.org To: Lin Sun Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 02 20:56:10 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 1s2bbF-000691-J5 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 May 2024 20:56:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s2ban-0001x3-N8; Thu, 02 May 2024 14:55:41 -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 1s2bam-0001wq-FN for bug-gnu-emacs@gnu.org; Thu, 02 May 2024 14:55:40 -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 1s2bam-0003Mt-6X for bug-gnu-emacs@gnu.org; Thu, 02 May 2024 14:55:40 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s2bb7-0006K6-Q3 for bug-gnu-emacs@gnu.org; Thu, 02 May 2024 14:56: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, 02 May 2024 18:56: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.171467613724298 (code B ref 70722); Thu, 02 May 2024 18:56:01 +0000 Original-Received: (at 70722) by debbugs.gnu.org; 2 May 2024 18:55:37 +0000 Original-Received: from localhost ([127.0.0.1]:45329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s2baj-0006Jq-Cm for submit@debbugs.gnu.org; Thu, 02 May 2024 14:55:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56506) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s2bae-0006Jj-6i for 70722@debbugs.gnu.org; Thu, 02 May 2024 14:55:35 -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 1s2baB-0003Ir-Up; Thu, 02 May 2024 14:55:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=xl5XH3J0y6O9OK4UMcOgf6ZgjODP6ZQCNGTSUEWF9NI=; b=McUteVFrMZsN waJb2paYyi2gfBcjw+MMxsaJfeimyK32HWIi4gkIspdGw/msQ9ns9yZpiNCEHACUvTWVRu67czNn3 qvLyWZwclNTDBYyzy4RzJM1qbDokPFE8+AU64yfYeDjr6qRe1qvX27DDysNOgVjxKnY1Iu0Fxobh1 uTsSGKVxggQ5LBB6yS+yV/kRx1qwp1NZq4FHFzsMjYWHk+bGuG76plyt0pEJY0V2stKo3pOkSjFcD scUNB9DmNxwpvJpojIkT7duVB+5vqRwHgESBZwKMOKXsLXpXa/G9ho1R37jS4Aa8nrTnsa84x+RBN xv0nxLOcZgO6z322jQ0QEw==; In-Reply-To: (message from Lin Sun on Thu, 2 May 2024 18:11:04 +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:284344 Archived-At: > 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.