[Nix-dev] Python 3 as default
Freddy Rietdijk
freddyrietdijk at fridh.nl
Tue Feb 14 16:48:56 CET 2017
It would two mean things:
1. alias `python3 to `python`
2. add a symlink that points to the `python` program, as discussed
before in this thread.
Just removing the `python` attribute is indeed perhaps a better solution
than 1). It's explicit, and like you said, it won't silently break people's
expressions. If anyone is willing to contribute their sed-fu to do such
mass-replacement then I don't see any reason why not.
On Tue, Feb 14, 2017 at 4:22 PM, Eelco Dolstra <eelco.dolstra at logicblox.com>
wrote:
> Hi,
>
> On 02/13/2017 10:08 AM, Freddy Rietdijk wrote:
>
> > As you may be aware the plan is to change to Python 3.5 as default for
> 17.03.
>
> What does it mean to make Python 3 the default? If it's changing the
> "python"
> attribute or command to alias "python3", I don't really see the advantage
> in
> doing that. It will just unnecessarily and silently break stuff (like user
> scripts that have "#!/usr/bin/env python").
>
> We could remove the "python" and "pythonPackages" attributes from Nixpkgs,
> forcing use of "python2" or "python3". Then at least people's Nix
> expressions
> won't change meaning silently.
>
> --
> Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20170214/41c28acc/attachment.html>
More information about the nix-dev
mailing list