GNU bug report logs - #30437
No “.guix-profile/bin/python” after ‘guix package -i python’

Previous Next

Package: guix;

Reported by: Mathieu Lirzin <mthl <at> gnu.org>

Date: Mon, 12 Feb 2018 16:53:01 UTC

Severity: normal

Done: Ricardo Wurmus <rekado <at> elephly.net>

Bug is archived. No further changes may be made.

Full log


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

From: Mathieu Lirzin <mthl <at> gnu.org>
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: Danny Milosavljevic <dannym <at> scratchpost.org>, 30437 <at> debbugs.gnu.org
Subject: Re: bug#30437: No “.guix-profile/bin/python” after ‘guix package -i
 python’
Date: Tue, 13 Feb 2018 01:45:42 +0100
Ricardo Wurmus <rekado <at> elephly.net> writes:

> Mathieu Lirzin <mthl <at> gnu.org> writes:
>
>> Danny Milosavljevic <dannym <at> scratchpost.org> writes:
>>
>>> On Mon, 12 Feb 2018 17:52:41 +0100
>>> Mathieu Lirzin <mthl <at> gnu.org> wrote:
>>>
>>>> I think it would work better if when installing python <at> 3, a ‘python’
>>>> executable would be available in the PATH.  Maybe there is a technical
>>>> reason for not doing so, but I find its absence rather confusing.
>>>
>>> For backward compatibility, the 'python' executable always has to be Python 2.
>>>
>>> A lot of old scripts specify just "/usr/bin/env python" in the shebang.
>>>
>>> On the other hand if your script supports Python 3 you know it.
>>
>> Hum, then I don't understand why we aren't applying this argument to
>> every interperter (Perl, Guile, ...) which introduce backward
>> incompatible changes?
>
> As far as I know, the Python 3 package does not provide the “python”
> binary.  That’s upstream’s decision.

Indeed your are right, they provide no configure option to enable such
thing as they don't encourage downstream to use ‘python’ as an alias to
‘python3’ yet.  After some research this is discussed in PEP-0394. [1]

As a consequence it seems reasonable for Guix to not deviate from
upstream recommandation, even if the shebang issue described by PEP-0394
are mitigated by the functional package management paradigm.

Thanks.

[1] https://www.python.org/dev/peps/pep-0394/

-- 
Mathieu Lirzin
GPG: F2A3 8D7E EB2B 6640 5761  070D 0ADE E100 9460 4D37




This bug report was last modified 7 years and 102 days ago.

Previous Next


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