Currently, pycairo 1.2 does not build on win32 (with mingw32) due to some "non-const initializer" errors in pycairo-path.c. The attached fixes this issue. It also slightly changes setup.py to make it compatible with the distutils-generated installer for win32 (python setup.py bdist_wininst).
Created attachment 7044 [details] [review] Fix pycairo-1.2 build on win32 (mingw32) + distutils setup.py script
Looks like two patches mixed together. I applied the PycairoPathiter_Tpye patch (I'd already fixed many instances of the same problem) but left out the PyType_Ready() call. I don't think the PycairoPathiter_Type problem is a pycairo bug, since the 'problem' C code is very similar code used in the Python source itself. I think its a Mingw bug - mingw gcc can't compile valid C code which gcc (and other compilers) on different platforms can compile. Its probably better to fix mingw rather than apply workarounds to many individually projects. The setup.py patch looks good so I applied that too.
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.