[lxml-dev] lxml setup.py exslt link flag
Stefan Behnel
behnel_ml at gkec.informatik.tu-darmstadt.de
Tue Nov 21 08:51:06 CET 2006
Hi Luke,
Luke Tucker wrote:
> I came across a slight issue with the part of lxml's setup.py
> that adds a link flag for exslt when libxslt is installed
> in a directory with a name containing the string 'xslt'.
>
> If I understand correctly, to generate the link flag for
> libexslt, the result of 'xslt-config --libs'
> is taken and searched for an element containing 'xslt' and
> a new element is inserted which has 'exslt' instead.
>
> In my case, I was working with an install of libxslt in:
>
> /home/ltucker/devel/deliverance.buildout/parts/libxslt
>
> and 'xslt-config --libs' returns:
>
> ---------------------------------------------------------------------
> -L/home/ltucker/devel/deliverance.buildout/parts/libxslt/lib
> -L/home/ltucker/devel/deliverance.buildout/parts/libxml2/lib -lxslt
> -lxml2 -lz -lm
> ---------------------------------------------------------------------
I committed a little patch to the trunk that should make setup.py a little (!)
more robust against this kind of problem. Please check if it works for you.
Stefan
More information about the lxml-dev
mailing list