building extensions with gcc and python 2.2

Chris Liechti cliechti at gmx.net
Sun Oct 13 15:46:17 EDT 2002


martin at v.loewis.de (Martin v. Loewis) wrote in 
news:m3k7kmqgfn.fsf at mira.informatik.hu-berlin.de:

> Ken Seehof <kseehof at neuralintegrator.com> writes:
> 
>> Should I use Cygwin or Mingw?
> 
> If you use Cygwin, your users will need a complete Cygwin
> installation, including the Python that comes with cygwin; you will
> not be able to use your extension modules with PythonLabs Python,
> ActivePython, or the Win32 extensions.

i use gcc from cygwin with --compiler=mingw and the extensions work 
perfectly with the python.org dist.

whats certainly speaks for mingw instead of cygwin is the download size. 
cygwin is great when you want the posix emualtion but native win32 dlls are 
probably what Ken wants when he used VC++ before and for that is mingw.

> If you use Mingw, it probably will not work without tricks being done
> to the import library.

yes, one needs to build the own one with pexports and dlltool. but thats 
easy and has only to be done once.

chris
-- 
Chris <cliechti at gmx.net>




More information about the Python-list mailing list