From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lin Sun Newsgroups: gmane.emacs.bugs Subject: bug#70815: [PATCH] ; Enahnce python-tests.el to adapt different python interpreters Date: Mon, 27 May 2024 04:19:03 -0700 Message-ID: References: <6057C283-20C5-4A91-9CD4-EBA521B8C893@gmail.com> <7CF65AE1-B3AC-40C5-AC82-CE575E5E1831@gmail.com> <86h6ekwoxb.fsf@gnu.org> <7440E11E-25EF-44C4-A2D8-7F95C2C20466@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000fa75fd06196daf99" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2592"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , kobarity , 70815@debbugs.gnu.org, Stefan Kangas To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 27 13:21:24 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 1sBYPs-0000S9-1G for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 May 2024 13:21:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sBYPU-0007kr-Go; Mon, 27 May 2024 07:21:00 -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 1sBYPN-0007fQ-DG for bug-gnu-emacs@gnu.org; Mon, 27 May 2024 07:20:53 -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 1sBYPN-0007Qe-0L for bug-gnu-emacs@gnu.org; Mon, 27 May 2024 07:20:53 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sBYPV-0000ng-Jn for bug-gnu-emacs@gnu.org; Mon, 27 May 2024 07:21:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lin Sun Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 May 2024 11:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70815 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 70815-submit@debbugs.gnu.org id=B70815.17168088323019 (code B ref 70815); Mon, 27 May 2024 11:21:01 +0000 Original-Received: (at 70815) by debbugs.gnu.org; 27 May 2024 11:20:32 +0000 Original-Received: from localhost ([127.0.0.1]:43221 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sBYP2-0000mc-11 for submit@debbugs.gnu.org; Mon, 27 May 2024 07:20:32 -0400 Original-Received: from mail-ed1-f45.google.com ([209.85.208.45]:50537) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sBYOz-0000mO-Iw for 70815@debbugs.gnu.org; Mon, 27 May 2024 07:20:30 -0400 Original-Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-57863e2846aso2220501a12.1 for <70815@debbugs.gnu.org>; Mon, 27 May 2024 04:20:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716808755; x=1717413555; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=QRYboZTkp8wJskx0Gref4GASqDgLF0TLyIhN5GhabHQ=; b=gC3vC7eAoAV0p9vaZtfpbNaYlq3la/X12tYXr6kuSjj0a5MeBE/F3MKJ1Rm+FOsO3K wA4SZaJ8cD6QpKB9532paCRe+Ksdt8LccM4zDWAY0b6SukpLy0zo+j/aXC8PRdsRa1kf kfBwzIC+Q8JYiZBvPbeb+yMZkmo82mMufCnCLcZ9sZEIJMNrvp1kn6Lg/jdw6DAkgpoR +09yq06l9PCGEwwUuUI73XGxuoWUtKFr6G9uRQhc4MiDpJ05K3VTBZff/oF7sLmAeDUS ikvS0OYML3xwsSzw0uanpD5efnkL5Ick20QCsIYdoBSakdAAhx6wlIZmUPLIpkjKiTly HJoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716808755; x=1717413555; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=QRYboZTkp8wJskx0Gref4GASqDgLF0TLyIhN5GhabHQ=; b=UQVg2UnsE4Y+24iju/NkmG4KLXdtkW3keHaFol+G5uAf0z1S3CPyVUwZL5m8JpfiAD Z7B4Tl8ek5OOAOFAjqQLVVVbxV2GZxS7h6l4PCrvejg6EmehoqdoA+Ks0Bvdvnbspcs7 y9wzkyh3tCZQKGhRFrdJONjyYcpUTLiRJ5Uq235QcD4BXKMCqyJ9ONE+waPaFbRfx7pa MD6vq8RkJhGWp5B/xmR0ZwOdP497EJDNER5umvVys++Ivwxpq6DFuCCWnhUVrHY5LOwv Y2GOeyqSo3bOZ4p4b8dbI/EGTuiNXx7j53FmzJzoGPU1EKTA0QLmDI8LvfTW0susgxtR cnPw== X-Forwarded-Encrypted: i=1; AJvYcCWT3ptO89/5FzGryqst18gU7cEmV81XF0m03NHBPOYgomNMaB2tFYcD+tCcxJDbNUgnbQgm3pBlpdlrgGAkCNRYSHlq5jA= X-Gm-Message-State: AOJu0Yyr2dRhQ9N5HN3aIQyEBPxDOu8ZHc+1VfrwYPOHd8xsHYr1POt5 pUzFi1Pp8QpI4SabMXZI+cu5hhgQPZF3QtylOxdPyX/iquxRxyFQAVdXWWZOqj5CnKhH97GKprU oYi2QbrEw5E8/h7Fiuyj+nOcfjq4= X-Google-Smtp-Source: AGHT+IEwm5JWKzE74X7/zqqY+vglbewyJ6urWvNvy55otkjdeIvMye35kmv1nYycSOIdx3DSzZ8J56o+E2gQVK4UTuE= X-Received: by 2002:a50:c314:0:b0:579:d769:7670 with SMTP id 4fb4d7f45d1cf-579d7697721mr1269787a12.1.1716808754817; Mon, 27 May 2024 04:19:14 -0700 (PDT) In-Reply-To: <7440E11E-25EF-44C4-A2D8-7F95C2C20466@gmail.com> 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:286020 Archived-At: --000000000000fa75fd06196daf99 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, May 27, 2024, 03:24 Mattias Engdeg=C3=A5rd wrote: > 26 maj 2024 kl. 17.52 skrev Eli Zaretskii : > > > Why do you have "python" as python2 when you have Python 3.x > > installed? The usual practice is to have "python" invoke the > > preferred version, which is normally the latest one. > > That is a misunderstanding. It is not at all unusual to have plain > `python` being Python 2 for compatibility with old scripts. (A long-runni= ng > debate point in the transition from Python 2 to 3.) > > In any case, this set-up is standard in macOS (at least my version), and > I'm quite sure I've seen similar arrangements in other systems. > > What we are debating now is whether it is worth making the tests pass for > certain Python 2 installations if the user somehow prefers those (with > EMACS_PYTHON_INTERPRETER), and if so, how. > > Kobarity and Lin Sun, wouldn't it make sense to tie the interpreter to > test to `python-shell-interpreter`? > Hi Eli, it's not worth to make the cases for user perfers EMACS_PYTHON_INTERPRETER. It's failed naturally if the interpreter version is not supported anymore or not supported yet. For python2, as we discussed on original patch thread, it may be will still exists for many years, so we need keep compatible with it, but we may skip the cases that not working for python2 anymore. And I'm trying to get the details of the failure. > --000000000000fa75fd06196daf99 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, May 27, 2024, 03:24 Mattias Engdeg=C3=A5rd <mattias.engdegard@gmail.com>= wrote:
26 maj 2024 kl. 17.52 skrev= Eli Zaretskii <eliz@gnu.org>:

> Why do you have "python" as python2 when you have Python 3.x=
> installed?=C2=A0 The usual practice is to have "python" invo= ke the
> preferred version, which is normally the latest one.

That is a misunderstanding. It is not at all unusual to have plain `python`= being Python 2 for compatibility with old scripts. (A long-running debate = point in the transition from Python 2 to 3.)

In any case, this set-up is standard in macOS (at least my version), and I&= #39;m quite sure I've seen similar arrangements in other systems.

What we are debating now is whether it is worth making the tests pass for c= ertain Python 2 installations if the user somehow prefers those (with EMACS= _PYTHON_INTERPRETER), and if so, how.

Kobarity and Lin Sun, wouldn't it make sense to tie the interpreter to = test to `python-shell-interpreter`?

Hi Eli, it's not worth to make the c= ases for user perfers EMACS_PYTHON_INTERPRETER.=C2=A0
It's failed naturally if the interpreter version is not supported any= more or not supported yet.

For python2, as we discussed on original patch thread, it may be will st= ill exists for many years, so we need keep compatible with it, but we may s= kip the cases that not working for python2 anymore.
=
And I'm trying to get the details of the fa= ilure.
--000000000000fa75fd06196daf99--