[Nix-dev] Re: May I remove the old python code?

Marc Weber marco-oweber at gmx.de
Thu Jan 8 01:01:14 CET 2009


On Wed, Jan 07, 2009 at 03:05:42PM +0100, Ludovic Courtès wrote:
> Hello,
> 
> Marc Weber <marco-oweber at gmx.de> writes:
> 
> >> Isn't it possible to just "nix-env -i python-2.5" and then "nix-env -i
> >> wxpython-2.5" if I see fit?  Why do we have to have a wrapper in the
> >> first place?
> >
> > Why?
> >
> > What happens if you upgrade python-2.5 to 2.6 ? You're old (2.5) libraries will
> > still lay around.
> So what?  I guess they won't be used anyway since they will still be in
> some /2.5 directory, right?
Yes, I don't like having leaves..

> Upgrading from Python 2.5 to 2.6 should just be a matter of changing
> "python = python25" to "python = python26" in `all-packages.nix', no?
> 
> > You can try. But you'll have to export NIX_PYtHON_SITES to
> Yet another Nix-specific environment variable?  Is it really needed?
yes
See comments. I've documented it :-)
PYTHONPATH has not been enough, sorry. I've spend quite a lot of time
figuring out.. I couldn't find a better way. If you do tell me, please.

Marc Weber



More information about the nix-dev mailing list