Re: [Nix-dev] PYTHONPATH

2013-02-01 Thread Shea Levy
Hi Christopher, If you install pythonPackages.recursivePythonLoader, then setting PYTHONPATH=$HOME/.nix-profile/lib/python2.7/site-packages should work for all nix-installed python packages. Thanks, Shea On 02/01/2013 08:23 PM, Christopher Howard wrote: > Hi. Question for the python savvy user

Re: [Nix-dev] PYTHONPATH

2013-02-01 Thread Marc Weber
Excerpts from Christopher Howard's message of Sat Feb 02 02:23:53 +0100 2013: > Hi. Question for the python savvy users: I'm no export at python or > nix, but I used nix to install some python stuff. I see .egg > directories appearing in ~/nix-profile/lib/python2.7/site-packages, > and it seems I c

[Nix-dev] PYTHONPATH

2013-02-01 Thread Christopher Howard
Hi. Question for the python savvy users: I'm no export at python or nix, but I used nix to install some python stuff. I see .egg directories appearing in ~/nix-profile/lib/python2.7/site-packages, and it seems I can use a package if I set PYTHONPATH to ~/nix-profile/lib/python2.7/site-packages/pack

Re: [Nix-dev] PYTHONPATH and eggs

2012-08-07 Thread Florian Friesdorf
On Sun, 5 Aug 2012 14:06:30 +0200, Mathijs Kwik wrote: > I fixed it. > pyxattrs and pylibacl depend on setuptools, so that needed to be > included in the wrapper too. > See > https://github.com/NixOS/nixpkgs/commit/107f5e3560e446d690ab62bc5b8f3d86f7032459 Sorry - that was an obvious one! Great

Re: [Nix-dev] PYTHONPATH and eggs

2012-08-05 Thread Mathijs Kwik
I fixed it. pyxattrs and pylibacl depend on setuptools, so that needed to be included in the wrapper too. See https://github.com/NixOS/nixpkgs/commit/107f5e3560e446d690ab62bc5b8f3d86f7032459 Regards, Mathijs On Fri, Jul 27, 2012 at 6:24 PM, Mathijs Kwik wrote: > On Fri, Jul 27, 2012 at 3:30 PM,

Re: [Nix-dev] PYTHONPATH and eggs

2012-07-27 Thread Mathijs Kwik
On Fri, Jul 27, 2012 at 3:30 PM, Florian Friesdorf wrote: > On Fri, 27 Jul 2012 14:32:47 +0200, Cillian de Róiste > wrote: >> On Fri, Jul 27, 2012 at 1:42 PM, Florian Friesdorf wrote: >> > On Fri, 27 Jul 2012 13:29:03 +0200, Mathijs Kwik >> > wrote: >> >> That's strange then :) >> >> >> >> I

Re: [Nix-dev] PYTHONPATH and eggs

2012-07-27 Thread Florian Friesdorf
On Fri, 27 Jul 2012 14:32:47 +0200, Cillian de Róiste wrote: > On Fri, Jul 27, 2012 at 1:42 PM, Florian Friesdorf wrote: > > On Fri, 27 Jul 2012 13:29:03 +0200, Mathijs Kwik > > wrote: > >> That's strange then :) > >> > >> I disabled the test too, but the problem remains. > >> Just to be clear

Re: [Nix-dev] PYTHONPATH and eggs

2012-07-27 Thread Cillian de Róiste
On Fri, Jul 27, 2012 at 1:42 PM, Florian Friesdorf wrote: > On Fri, 27 Jul 2012 13:29:03 +0200, Mathijs Kwik > wrote: >> That's strange then :) >> >> I disabled the test too, but the problem remains. >> Just to be clear, it's a warning, not an error: >> >> % bup meta >> Warning: Linux xattr supp

Re: [Nix-dev] PYTHONPATH and eggs

2012-07-27 Thread Florian Friesdorf
On Fri, 27 Jul 2012 13:29:03 +0200, Mathijs Kwik wrote: > That's strange then :) > > I disabled the test too, but the problem remains. > Just to be clear, it's a warning, not an error: > > % bup meta > Warning: Linux xattr support missing; install python-pyxattr. > Warning: POSIX ACL support mi

Re: [Nix-dev] PYTHONPATH and eggs

2012-07-27 Thread Mathijs Kwik
That's strange then :) I disabled the test too, but the problem remains. Just to be clear, it's a warning, not an error: % bup meta Warning: Linux xattr support missing; install python-pyxattr. Warning: POSIX ACL support missing; install python-pylibacl. usage: bup meta --create [OPTION ...]

Re: [Nix-dev] PYTHONPATH and eggs

2012-07-27 Thread Florian Friesdorf
Hi Mathijs, On Fri, 27 Jul 2012 09:06:44 +0200, Mathijs Kwik wrote: > Hi Florian, > > I used "buildPythonPackage" for the 2 modules (xattr and acl). > Bup itself is not a python package by itself (I think), so I gave that > a normal package, and just wrapped the (only) binary with PYTHONPATH >

Re: [Nix-dev] PYTHONPATH and eggs

2012-07-27 Thread Mathijs Kwik
Hi Florian, I used "buildPythonPackage" for the 2 modules (xattr and acl). Bup itself is not a python package by itself (I think), so I gave that a normal package, and just wrapped the (only) binary with PYTHONPATH prefixes, as I've seen in other packages in the nixpkgs too. Please have a look he

Re: [Nix-dev] PYTHONPATH and eggs

2012-07-26 Thread Florian Friesdorf
On Thu, 26 Jul 2012 22:31:48 +0200, Mathijs Kwik 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/li

[Nix-dev] PYTHONPATH and eggs

2012-07-26 Thread Mathijs Kwik
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