>>>>> "Cedric" == Cedric Gustin <[EMAIL PROTECTED]> writes: Cedric> See http://www.pcpm.ucl.ac.be/~gustin/win32_ports/
Cedric> Building pygtk with mingw on win32 is not THAT difficult Cedric> if you use the distutils script.
Eureka!
Finally tamed this beast, but it took me a while. The gory details are available at http://nitace.bsd.uchicago.edu:8080/Wikis/Leo/CompilingPythonWin, which elaborates on the steps at http://www.pcpm.ucl.ac.be/~gustin/win32_ports/ and details some roadbumps and solutions I encountered.
One roadbump was that for WindowsME/mingw/python2.2/pygtk2, the compiler flag -mms-bitfields had to be set to successfully import pygtk. I did this by editing setup.py and calling
for module in ext_modules: module.extra_compile_args.append('-mms-bitfields')
Is there a way to pass an extra flag from the shell?
Well, it's not only for WinMe, you always have to use this flag when building anything that uses the gtk+ libraries on win32 or -fnative-struct with gcc 2.95). Although it's not explicitly stated on the official gtk+ on win32 page, it's really a FAQ !!!
I use 'export CFLAGS="-mcpu=pentium -mms-bitfields -O2". No need than to add it to extra_compile_args. Same thing with LIBRARY_PATH for the location of my libpython22.a import library. All standard gcc stuff.
Cedric
_______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
