import getopt
import sys
+As of May 20, 2010, the situation for libxcb seems to be more complicated. The latest *xcb/proto* needs
+to be installed. If one does not wish to install on top of one's current Python modules,
+define
+
+ export PYTHONPATH=${PREFIX}/lib/python2.6/site-packages
+
+and apply a patch similar to below to change *cElementTree* to *ElementTree*
+
+ diff --git a/xcbgen/matcher.py b/xcbgen/matcher.py
+ index e7958fa..16e8273 100644
+ --- a/xcbgen/matcher.py
+ +++ b/xcbgen/matcher.py
+ @@ -7,7 +7,7 @@ we do not create a new type object, we just record the existing one under a new
+ '''
+
+ from os.path import join
+ -from xml.etree.cElementTree import parse
+ +from xml.etree.ElementTree import parse
+
+ import state
+ from xtypes import *
+ diff --git a/xcbgen/state.py b/xcbgen/state.py
+ index 51efc94..e72dc3e 100644
+ --- a/xcbgen/state.py
+ +++ b/xcbgen/state.py
+ @@ -2,7 +2,7 @@
+ This module contains the namespace class and the singleton module class.
+ '''
+ from os.path import dirname, basename
+ -from xml.etree.cElementTree import parse
+ +from xml.etree.ElementTree import parse
+
+ import matcher
+ from error import *
+
### libXext
CCLD libXext.la