[Nix-dev] python-wrapper or similar

Marc Weber marco-oweber at gmx.de
Fri Jun 11 08:31:51 CEST 2010


Hi Griswold,

There are multiple ways to address this issue:

a) Do as was done in GHC: collect packages based on $PATH.

b) as done by PYTHON: install everything into ~/.nix-profile
   Use PYTHONPATH and hope that it works.
   Why do I say *hope*? Because some packages are known to not work eg
   pyyaml. I have a patch which fixes it. However I didn't test enoguh
   yet.

In any case you want to read
http://wiki.nixos.org/wiki/Howto_keep_multiple_packages_up_to_date_at_once

Also have a look at this proposal:
http://thread.gmane.org/gmane.linux.distributions.nixos/4266

In the past python made trouble because setting PYTHONPATH was not
always enough because it didn't take .pth files into account. This was
about python-2.5.

Using PYTHONUSERBASE does not solve anything because
- you can only pass one directory (which is fine for the installed
  environment, but not when building packages)
- some .egg files are not installed to the user env causing some of the
  pyyaml issue.

That's my point of view which can be incomplete.

May I ask which is the particular problem you're trying to solve?

Let me know if you're interested in using my patches follow the top-git
howto on nixos.org. The topic branch is called t/python-new2

If you have any trouble contact me on irc.

I'll teach you how to get them.

Marc Weber



More information about the nix-dev mailing list