Python discussion: Difference between revisions
imported>Fadenb |
imported>Fadenb m whitespace removal |
||
Line 26: | Line 26: | ||
=== python-gudev === | === python-gudev === | ||
i have problems packaging python-gudev: | i have problems packaging python-gudev: | ||
gudevmodule.c:19:23: fatal error: pygobject.h: No such file or directory | |||
but looking at the exports (nix-env -i python-gudev -K; source env-vars) i can see: | but looking at the exports (nix-env -i python-gudev -K; source env-vars) i can see: | ||
-I/nix/store/lqsihhkhl7rhr18x7qiviihyp2byc5gw-pygobject-2.27.0/include | -I/nix/store/lqsihhkhl7rhr18x7qiviihyp2byc5gw-pygobject-2.27.0/include | ||
but in that folder there is only pygtk-2.0 folder: | but in that folder there is only pygtk-2.0 folder: | ||
ls -la /nix/store/lqsihhkhl7rhr18x7qiviihyp2byc5gw-pygobject-2.27.0/include | |||
pygtk-2.0/ | |||
so in that folder i find: | so in that folder i find: | ||
ls -la /nix/store/lqsihhkhl7rhr18x7qiviihyp2byc5gw-pygobject-2.27.0/include/pygtk-2.0/ | |||
pyglib.h pygobject.h | |||
=== the problem === | === the problem === | ||
as discussed in [http://old.nabble.com/Python-3-to22076291.html#a22119842] and quoting [https://nixos.org/repos/nix/nixpkgs/trunk/pkgs/development/python-modules/pygobject/default.nix] | as discussed in [http://old.nabble.com/Python-3-to22076291.html#a22119842] and quoting [https://nixos.org/repos/nix/nixpkgs/trunk/pkgs/development/python-modules/pygobject/default.nix] | ||
# All python code is installed into a "gtk-2.0" sub-directory. That | |||
# sub-directory may be useful on systems which share several library | |||
# versions in the same prefix, i.e. /usr/local, but on Nix that directory | |||
# is useless. Furthermore, its existence makes it very hard to guess a | |||
# proper $PYTHONPATH that allows "import gtk" to succeed. | |||
so how should i package python-gudev then? the source for python-gudev (which produces the above error) can be found at [https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/python-gudev/default.nix] | so how should i package python-gudev then? the source for python-gudev (which produces the above error) can be found at [https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/python-modules/python-gudev/default.nix] |