Original Translation
221
pexports python25.dll >python25.def
222
The location of an installed :file:`python25.dll` will depend on the installation options and the version and language of Windows. In a "just for me" installation, it will appear in the root of the installation directory. In a shared installation, it will be located in the system directory.
223
Then you can create from these information an import library for gcc. ::
224
/cygwin/bin/dlltool --dllname python25.dll --def python25.def --output-lib libpython25.a
225
The resulting library has to be placed in the same directory as :file:`python25.lib`. (Should be the :file:`libs` directory under your Python installation directory.)
226
If your extension uses other libraries (zlib,...) you might have to convert them too. The converted files have to reside in the same directories as the normal libraries do.
227
To let Distutils compile your extension with Cygwin you now have to type ::
228
python setup.py build --compiler=cygwin
229
and for Cygwin in no-cygwin mode [#]_ or for MinGW type::
230
python setup.py build --compiler=mingw32