[Nix-dev] PYTHONPATH and eggs

Mathijs Kwik mathijs at bluescreen303.nl
Thu Jul 26 22:31:48 CEST 2012


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?

Thanks for any help,
Mathijs


More information about the nix-dev mailing list