GNU bug report logs - #70815
[PATCH] ; Enahnce python-tests.el to adapt different python interpreters

Previous Next

Package: emacs;

Reported by: Lin Sun <sunlin7.mail <at> gmail.com>

Date: Tue, 7 May 2024 06:54:02 UTC

Severity: normal

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #73 received at 70815 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Mattias EngdegÄrd <mattias.engdegard <at> gmail.com>
Cc: kobarity <at> gmail.com, sunlin7.mail <at> gmail.com, stefankangas <at> gmail.com,
 70815 <at> debbugs.gnu.org
Subject: Re: bug#70815: [PATCH] ; Enahnce python-tests.el to adapt different
 python interpreters
Date: Sun, 26 May 2024 18:36:43 +0300
> From: Mattias EngdegÄrd <mattias.engdegard <at> gmail.com>
> Date: Sun, 26 May 2024 12:52:54 +0200
> Cc: Lin Sun <sunlin7.mail <at> gmail.com>,
>  stefankangas <at> gmail.com,
>  70815 <at> debbugs.gnu.org,
>  Eli Zaretskii <eliz <at> gnu.org>
> 
> This change caused python-tests failures on macOS. See attached log.
> 
> On this machine which has the standard macOS Python installation, 'python' is python 2, which apparently the tests don't cope very well with. (Have you verified that they do?)
> 
> The tests pass if modified to prefer Python 3:
> 
> @@ -3722,2 +3722,2 @@ python-tests-get-shell-interpreter
> -              (cl-some #'executable-find '("python" "python3" "python2"))))))
> +              (cl-some #'executable-find '("python3" "python" "python2"))))))

I don't like this preference.  It is basically wrong, because it
second-guesses what Python is _the_ Python on the user's machine.

Let's try to find another solution.  If worse comes to worst, we could
make a change specific to macOS, but I hope we won't need to.




This bug report was last modified 1 year and 40 days ago.

Previous Next


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