GNU bug report logs - #71672
[PATCH] python: Prefer python3 over python

Previous Next

Package: automake-patches;

Reported by: Collin Funk <collin.funk1 <at> gmail.com>

Date: Thu, 20 Jun 2024 09:51:01 UTC

Severity: normal

Full log


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

From: Jacob Bachmeyer <jcb62281 <at> gmail.com>
To: Karl Berry <karl <at> freefriends.org>, zack <at> owlfolio.org
Cc: 71672 <at> debbugs.gnu.org, collin.funk1 <at> gmail.com
Subject: Re: [bug#71672] [PATCH] python: Prefer python3 over python
Date: Mon, 24 Feb 2025 22:03:58 -0600
On 2/24/25 10:48, Karl Berry wrote:
> [...]
>
> To be clear, the above suggested factoring-out won't (intentionally)
> affect the behavior of AM_PATH_PYTHON, right? It will still look for
> "python" first, and still do all the stuff it does. I want Automake to
> stay as backward-compatible as possible.

The problem is that Python did *not* stay backward-compatible and in the 
worst way:  running a program written for Python2 on a Python3 
interpreter can silently corrupt data if I understand correctly.

At minimum, a request for an unversioned python should raise a warning 
(if not an error:  "specify Python2 or Python3") and AM_PATH_PYTHON 
should probably be deprecated in favor of separate AM_PATH_PYTHON2 and 
AM_PATH_PYTHON3.

I am insufficiently familiar with Python to say if we should have finer 
granularity than "Python3" and I am uncertain how compatible the 
different releases of Python3 actually are.


-- Jacob





This bug report was last modified 109 days ago.

Previous Next


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