From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Enge Subject: Re: libxml2-python Date: Tue, 12 Mar 2013 21:26:36 +0100 Message-ID: <201303122126.36664.andreas@enge.fr> References: <201303062343.03155.andreas@enge.fr> <201303072338.13585.andreas@enge.fr> <513CB05E.80609@gmail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33460) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFVnX-00059M-5m for bug-guix@gnu.org; Tue, 12 Mar 2013 16:32:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UFVmT-00066L-4R for bug-guix@gnu.org; Tue, 12 Mar 2013 16:27:47 -0400 Received: from moutng.kundenserver.de ([212.227.126.186]:58008) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UFVmS-00065n-RN for bug-guix@gnu.org; Tue, 12 Mar 2013 16:26:41 -0400 In-Reply-To: <513CB05E.80609@gmail.com> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Cyril Roelandt Cc: bug-guix@gnu.org Am Sonntag, 10. M=C3=A4rz 2013 schrieb Cyril Roelandt: > On 03/07/2013 11:38 PM, Andreas Enge wrote: > > I am attaching the resulting patch. Is it reasonable to apply it to > > the libxml2 package, or would it be preferable to create a separate > > libxml2- python package? > I'm not sure it is a good idea to automatically install bindings along > with the library, so I'd rather have a package per binding. I would rather say "one tarball, one package". But this case is borderline:= =20 The python bindings are not installed automatically, but need an additonal= =20 "python setup.py" step in a subdirectory, which even compiles a shared=20 library. And they can be downloaded in a separate tarball. Are there any other opinions? So far, I modified the existing package to=20 also install the bindings, but they could easily be split out. > On an unrelated note, the PYTHONPATH envrionment variable must be > adjusted in order to use the library, since it is not installed in a > "standard" location, but I guess there is not much we can do about it. Yes, I needed to add (setenv "PYTHONPATH" (string-append libxml2 "/lib/python2.7/site- packages")) as well as in some other place (setenv "PERL5LIB" (string-append perl-xml-parser=20 "/lib/perl5/site_perl")) This had better be handled centrally. One could do it in the same way as=20 CPATH currently, but Ludovic had some ideas how to generalise it even=20 further. I added a "FIXME" comment in the build recipe. Andreas