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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 30437 in the body.
You can then email your comments to 30437 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#30437; Package guix. (Mon, 12 Feb 2018 16:53:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mathieu Lirzin <mthl <at> gnu.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 12 Feb 2018 16:53:01 GMT) Full text and rfc822 format available.

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

From: Mathieu Lirzin <mthl <at> gnu.org>
To: bug-guix <at> gnu.org
Subject: No “.guix-profile/bin/python”
 after ‘guix package -i python’
Date: Mon, 12 Feb 2018 17:52:41 +0100
Hello,

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.

Thanks for considering it.

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




Information forwarded to bug-guix <at> gnu.org:
bug#30437; Package guix. (Mon, 12 Feb 2018 17:24:02 GMT) Full text and rfc822 format available.

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

From: Danny Milosavljevic <dannym <at> scratchpost.org>
To: Mathieu Lirzin <mthl <at> gnu.org>
Cc: 30437 <at> debbugs.gnu.org
Subject: Re: bug#30437: No “.guix-profile/bin/python” after ‘guix package -i
 python’
Date: Mon, 12 Feb 2018 18:23:07 +0100
Hi Mathieu,

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.




Information forwarded to bug-guix <at> gnu.org:
bug#30437; Package guix. (Mon, 12 Feb 2018 18:31:02 GMT) Full text and rfc822 format available.

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

From: Efraim Flashner <efraim <at> flashner.co.il>
To: Danny Milosavljevic <dannym <at> scratchpost.org>
Cc: 30437 <at> debbugs.gnu.org, Mathieu Lirzin <mthl <at> gnu.org>
Subject: Re: bug#30437: No “.guix-profile/bin/python” after ‘guix package -i python’
Date: Mon, 12 Feb 2018 20:29:52 +0200
[Message part 1 (text/plain, inline)]
On Mon, Feb 12, 2018 at 06:23:07PM +0100, Danny Milosavljevic wrote:
> Hi Mathieu,
> 
> 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.
> 

We do also have the 'python-wrapper' package which uses python3 as
python

-- 
Efraim Flashner   <efraim <at> flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]

Reply sent to Ricardo Wurmus <rekado <at> elephly.net>:
You have taken responsibility. (Mon, 12 Feb 2018 19:02:02 GMT) Full text and rfc822 format available.

Notification sent to Mathieu Lirzin <mthl <at> gnu.org>:
bug acknowledged by developer. (Mon, 12 Feb 2018 19:02:03 GMT) Full text and rfc822 format available.

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

From: Ricardo Wurmus <rekado <at> elephly.net>
To: 30437-done <at> debbugs.gnu.org
Subject: Re: bug#30437: No “.guix-profile/bin/python” after ‘guix package -i
 python’
Date: Mon, 12 Feb 2018 20:00:57 +0100
Efraim Flashner <efraim <at> flashner.co.il> writes:

> On Mon, Feb 12, 2018 at 06:23:07PM +0100, Danny Milosavljevic wrote:
>> Hi Mathieu,
>> 
>> 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.
>> 
>
> We do also have the 'python-wrapper' package which uses python3 as
> python

Closing because it’s not a bug.

-- 
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net






Information forwarded to bug-guix <at> gnu.org:
bug#30437; Package guix. (Mon, 12 Feb 2018 19:39:02 GMT) Full text and rfc822 format available.

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

From: Mathieu Lirzin <mthl <at> gnu.org>
To: Danny Milosavljevic <dannym <at> scratchpost.org>
Cc: 30437 <at> debbugs.gnu.org
Subject: Re: bug#30437: No “.guix-profile/bin/python” after ‘guix package -i
 python’
Date: Mon, 12 Feb 2018 20:38:44 +0100
Hi,

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?

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




Information forwarded to bug-guix <at> gnu.org:
bug#30437; Package guix. (Mon, 12 Feb 2018 19:57:01 GMT) Full text and rfc822 format available.

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

From: Mathieu Lirzin <mthl <at> gnu.org>
To: 30437 <at> debbugs.gnu.org
Subject: Re: bug#30437: closed (Re: bug#30437: No “.guix-profile/bin/python” after ‘guix package -i python’)
Date: Mon, 12 Feb 2018 20:55:54 +0100
help-debbugs <at> gnu.org (GNU bug Tracking System) writes:

> From: Ricardo Wurmus <rekado <at> elephly.net>
> Subject: Re: bug#30437: No “.guix-profile/bin/python” after ‘guix package -i python’
> To: 30437-done <at> debbugs.gnu.org
> Date: Mon, 12 Feb 2018 20:00:57 +0100 (38 minutes, 1 second ago)
> User-agent: mu4e 0.9.18; emacs 25.3.1
>
>
> Efraim Flashner <efraim <at> flashner.co.il> writes:
>
>> On Mon, Feb 12, 2018 at 06:23:07PM +0100, Danny Milosavljevic wrote:
>>> Hi Mathieu,
>>> 
>>> 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.
>>> 
>>
>> We do also have the 'python-wrapper' package which uses python3 as
>> python

It is nice to have a ‘python-wrapper’ package as a workaround, but this
doesn't explain why the ‘python’ package shouldn't do it automatically.
Doing so would be far more convenient for casual users.

> Closing because it’s not a bug.

IMHO that was a bit quick to close.  I still consider this as a wishlist
bug.

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




Information forwarded to bug-guix <at> gnu.org:
bug#30437; Package guix. (Mon, 12 Feb 2018 23:16:01 GMT) Full text and rfc822 format available.

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

From: Ricardo Wurmus <rekado <at> elephly.net>
To: Mathieu Lirzin <mthl <at> gnu.org>
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 00:14:51 +0100
Mathieu Lirzin <mthl <at> gnu.org> writes:

> Hi,
>
> 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.

-- 
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net






Information forwarded to bug-guix <at> gnu.org:
bug#30437; Package guix. (Tue, 13 Feb 2018 00:46:01 GMT) Full text and rfc822 format available.

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




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 13 Mar 2018 11:24:05 GMT) Full text and rfc822 format available.

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.