[Nix-dev] PYTHONPATH and eggs

Florian Friesdorf flo at chaoflow.net
Fri Jul 27 08:56:42 CEST 2012


On Thu, 26 Jul 2012 22:31:48 +0200, Mathijs Kwik <mathijs at bluescreen303.nl> wrote:
> Hi all,
> 
> I'm not familiar with python packaging and module lookup, so I hope
> someone can help here.
> 
> I'm trying to add support for xattrs and acls to "bup".
> I packaged pyxattr and pylibacl.
> They build fine and leave
> $out/lib/python2.7/site-packages/*-linux-x86_64.egg files.
> 
> I checked the source of "bup" and it just tries "import posix1e"
> (which is in the root of one of the eggs) at runtime (not during
> install).
> So I used wrapProgram and "toPythonPath" to prefix these directories
> to PYTHONPATH at runtime.
> I both tried adding the directory itself and the path to the egg, but
> it doesn't work yet.
> 
> Am I missing something?

If you package python, you should use buildPythonPackage and put it into
top-level/python-packages.nix. If that does not work, please let me
know.

Also, if you send your patches or publish them somehow I will take a
look.

regards
florian
-- 
Florian Friesdorf <flo at chaoflow.net>
  GPG FPR: 7A13 5EEE 1421 9FC2 108D  BAAF 38F8 99A3 0C45 F083
Jabber/XMPP: flo at chaoflow.net
IRC: chaoflow on freenode,ircnet,blafasel,OFTC
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20120727/551e95cf/attachment.bin 


More information about the nix-dev mailing list