[Nix-dev] PYTHONPATH and eggs

Mathijs Kwik mathijs at bluescreen303.nl
Fri Jul 27 13:29:03 CEST 2012


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 ...] <PATH ...>
   or: bup meta --extract [OPTION ...]
   or: bup meta --start-extract [OPTION ...]
   or: bup meta --finish-extract [OPTION ...]

% cat `which bup`
#! /nix/store/043zrsanirjh8nbc5vqpjn93hhrf107f-bash-4.2-p24/bin/bash -e
export PYTHONPATH=/nix/store/ixp90035n4xrr6y4kcvcb36cd6rpcz0a-python-pyxattr-0.5.1/lib/python2.7/site-packages:/nix/store/kczagr8sv3yx355jy63byv7i7jngbx9v-python-pylibacl-0.5.1/lib/python2.7/site-packages:/nix/store/5qmz5wc596kl7rywx56phyl2gb0052w7-python-2.7.3/lib/python2.7/site-packages:/nix/store/93lbhnm76wlkmq7r0z8lwk3g9ch76hjp-git-1.7.11/lib/python2.7/site-packages${PYTHONPATH:+:}$PYTHONPATH
exec /nix/store/a8525w6briwiij324lnv425495jr9dcn-bup-0.25git20120722/bin/.bup-wrapped
"${extraFlagsArray[@]}" "$@"

% ls -l /nix/store/ixp90035n4xrr6y4kcvcb36cd6rpcz0a-python-pyxattr-0.5.1/lib/python2.7/site-packages
total 40
-r--r--r-- 1 root nixbld   224  1 jan  1970 easy-install.pth
-r--r--r-- 1 root nixbld 25699  1 jan  1970 pyxattr-0.5.1-py2.7-linux-x86_64.egg
-r--r--r-- 1 root nixbld  2362  1 jan  1970 site.py
-r--r--r-- 1 root nixbld  1845  1 jan  1970 site.pyc

% ls -l /nix/store/kczagr8sv3yx355jy63byv7i7jngbx9v-python-pylibacl-0.5.1/lib/python2.7/site-packages
total 44
-r--r--r-- 1 root nixbld   225  1 jan  1970 easy-install.pth
-r--r--r-- 1 root nixbld 31620  1 jan  1970
pylibacl-0.5.1-py2.7-linux-x86_64.egg
-r--r--r-- 1 root nixbld  2362  1 jan  1970 site.py
-r--r--r-- 1 root nixbld  1847  1 jan  1970 site.pyc

How can I debug this further?

Thanks,
Mathijs

On Fri, Jul 27, 2012 at 12:07 PM, Florian Friesdorf <flo at chaoflow.net> wrote:
>
> Hi Mathijs,
>
> On Fri, 27 Jul 2012 09:06:44 +0200, Mathijs Kwik <mathijs at bluescreen303.nl> 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
>> prefixes, as I've seen in other packages in the nixpkgs too.
>>
>> Please have a look here:
>> https://github.com/bluescreen303/nixpkgs/commit/4426f0a2c62d42f63cc57e86e80f38b15ac85250
>>
>> To test if it works, you can type "bup meta". That will now warn about
>> the missing libraries.
>
> I had to disable the tests for pylibacl, but bup meta does not give an
> error, also the generated wrapper looks good - do you still have the
> error?
>
> 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


More information about the nix-dev mailing list