From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyril Roelandt Subject: Re: libxml2-python Date: Thu, 07 Mar 2013 01:47:46 +0100 Message-ID: <5137E3B2.4090801@gmail.com> References: <201303062343.03155.andreas@enge.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:34408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDPB9-00078A-0e for bug-guix@gnu.org; Wed, 06 Mar 2013 19:59:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDPB2-0007YM-Mr for bug-guix@gnu.org; Wed, 06 Mar 2013 19:59:26 -0500 Received: from mail-wi0-x236.google.com ([2a00:1450:400c:c05::236]:43896) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDPB2-0007Y2-Em for bug-guix@gnu.org; Wed, 06 Mar 2013 19:59:20 -0500 Received: by mail-wi0-f182.google.com with SMTP id hi18so505504wib.9 for ; Wed, 06 Mar 2013 16:59:19 -0800 (PST) In-Reply-To: <201303062343.03155.andreas@enge.fr> 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: Andreas Enge Cc: bug-guix@gnu.org On 03/06/2013 11:43 PM, Andreas Enge wrote: > xorg-server requires mesa, and mesa requires python and libxml2, more > exactly libxml2-python. > > This is supposed to be set up the python way using > python setup.py build install > which already does not work manually: > failed to find headers for libxml2: update includes_dir > Supposedly, one needs to specify the path to libxml2. > From setup.py: # those are examined to find # - libxml2/libxml/tree.h # - iconv.h # - libxslt/xsltconfig.h includes_dir = [ "/usr/include", "/usr/local/include", "/opt/include", os.path.join(ROOT,'include'), HOME ]; You could patch setup.py to add the right path. Or you could run "configure" in libxml2 with "--prefix=", then cd into the "python" directory, and ROOT will be set to in setup.py. > Alternatively, one can run setup.py during the compilation of libxml2. > Trying this by hand results in > copying build/lib.linux-x86_64-2.7/libxml2mod.so -> > /usr/local/lib/python2.7/dist-packages > error: /usr/local/lib/python2.7/dist-packages/libxml2mod.so: Permission > denied > Clearly, we do not want python modules to end up in /usr/local. > Try: $ python setup.py install --prefix=/path/to/foo/bar You may have to adjust $PYTHONPATH to something like: /path/to/foo/bar:$PYTHONPATH for this to work. Cyril.