all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Mathieu Lirzin <mthl@gnu.org>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: 30437@debbugs.gnu.org
Subject: bug#30437: No “.guix-profile/bin/python” after ‘guix package -i python’
Date: Tue, 13 Feb 2018 01:45:42 +0100	[thread overview]
Message-ID: <87zi4d4szt.fsf@gnu.org> (raw)
In-Reply-To: <871shpls0k.fsf@elephly.net> (Ricardo Wurmus's message of "Tue, 13 Feb 2018 00:14:51 +0100")

Ricardo Wurmus <rekado@elephly.net> writes:

> Mathieu Lirzin <mthl@gnu.org> writes:
>
>> Danny Milosavljevic <dannym@scratchpost.org> writes:
>>
>>> On Mon, 12 Feb 2018 17:52:41 +0100
>>> Mathieu Lirzin <mthl@gnu.org> wrote:
>>>
>>>> I think it would work better if when installing python@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

  reply	other threads:[~2018-02-13  0:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-12 16:52 bug#30437: No “.guix-profile/bin/python” after ‘guix package -i python’ Mathieu Lirzin
2018-02-12 17:23 ` Danny Milosavljevic
2018-02-12 18:29   ` Efraim Flashner
2018-02-12 19:00     ` Ricardo Wurmus
2018-02-12 19:38   ` Mathieu Lirzin
2018-02-12 23:14     ` Ricardo Wurmus
2018-02-13  0:45       ` Mathieu Lirzin [this message]
     [not found] ` <handler.30437.D30437.151846208124209.notifdone@debbugs.gnu.org>
2018-02-12 19:55   ` bug#30437: closed (Re: bug#30437: No “.guix-profile/bin/python” after ‘guix package -i python’) Mathieu Lirzin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zi4d4szt.fsf@gnu.org \
    --to=mthl@gnu.org \
    --cc=30437@debbugs.gnu.org \
    --cc=rekado@elephly.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.