Hey, looks like the font_config_c typo in 0.5.1. The dependencies needs to be fixed up. This is on debian unstable. rene@grace:~/dev/cairo/pycairo$ python setup.py build running build running build_py package init file 'cairo/__init__.py' not found (or not a regular file) package init file 'cairo/__init__.py' not found (or not a regular file) running build_ext building 'cairo._cairo' extension creating build creating build/temp.linux-i686-2.3 creating build/temp.linux-i686-2.3/cairo gcc-3.3 -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/X11R6/include -I/usr/include/libpng12 -I/usr/include/python2.3 -c cairo/cairomodule.c -o build/temp.linux-i686-2.3/cairo/cairomodule.o In file included from cairo/pycairo-private.h:41, from cairo/cairomodule.c:36: cairo/pycairo.h:52: error: syntax error before "cairo_font_options_t" cairo/pycairo.h:52: warning: no semicolon at end of struct or union cairo/pycairo.h:53: warning: type defaults to `int' in declaration of `PycairoFontOptions' cairo/pycairo.h:53: warning: data definition has no type or storage class cairo/pycairo.h:99: error: syntax error before '*' token cairo/pycairo.h:99: warning: function declaration isn't a prototype In file included from cairo/cairomodule.c:36: cairo/pycairo-private.h:53: error: syntax error before '*' token cairo/pycairo-private.h:53: warning: function declaration isn't a prototype cairo/cairomodule.c: In function `init_cairo': cairo/cairomodule.c:255: error: `CAIRO_CONTENT_COLOR' undeclared (first use in this function) cairo/cairomodule.c:255: error: (Each undeclared identifier is reported only once cairo/cairomodule.c:255: error: for each function it appears in.) cairo/cairomodule.c:256: error: `CAIRO_CONTENT_ALPHA' undeclared (first use in this function) cairo/cairomodule.c:257: error: `CAIRO_CONTENT_COLOR_ALPHA' undeclared (first use in this function) error: command 'gcc-3.3' failed with exit status 1
I wouldn't expect pycairo cvs to work with cairo 0.5.1. pycairo versions are numbered so that they are compatible with the same numbered cairo version: pycairo snapshot 0.5.1 works with cairo snapshot 0.5.1 pycairo snapshot 0.6.0 works with cairo snapshot 0.6.0 And pycairo cvs is developed to work with cairo cvs, but they may not always work together because pycairo cvs always lags behind cairo cvs until the latest cairo changes are incorporated into pycairo. To install pycairo the recommended method if to use configure and make (see the INSTALL file). The setup.py is a user contributed file which probably needs to be worked on before its can be reliably used.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.