[Xcb] [patch] remove python 2.5 dependency
Nathan Lawrence
nlawren2 at uiuc.edu
Fri Aug 15 08:27:40 PDT 2008
Eamon Walsh wrote:
> George Wright wrote:
>> Hey all,
>>
>> Attached is a small patch that should remove the python 2.5 dependency and
>> allow it to work with python 2.3.
>>
>> Any feedback would be much appreciated.
>>
>
> Hi, has this been tested? When I looked into this, I found some other
> 2.5 dependencies besides the ternary operator fixed by this patch. The
> one that is non-trivial is that the xml.etree.cElementTree package is
> only shipped with Python starting with 2.5 [1].
xml.etree can be replaced by the lxml library (although that would add
another dependency). lxml implements the etree API, as well as adding
support for XSLT and XPath. Up until version 1.0.3, you can download
python eggs that work for python 2.3.
> But really, I think the larger issue here is that the current libxcb
> package requires the user to build the source on their machine, by
> running what used to be a stylesheet and what now is a Python script. I
> think it would be a lot more convenient to users if "built-source"
> libxcb packages were distributed that only contain the generated source
> code and do not require them to run the parser. Most users just want
> the library, they don't want to play with the XML proto descriptions.
Nah, us Gentoo people love that sort of stuff.
-- Nathan
More information about the Xcb
mailing list