|
Original |
Translation |
|
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
|
|
229
|
and for Cygwin in no-cygwin mode [#]_ or for MinGW type::
|
|
|
230
|
python setup.py build --compiler=mingw32
|
|
|
231
|
If you want to use any of these options/compilers as default, you should consider to write it in your personal or system-wide configuration file for Distutils (see section :ref:`inst-config-files`.)
|
|
|
232
|
Information about building the required libraries for the MinGW environment.
|
|
|
233
|
|
|
|
234
|
This also means you could replace all existing COFF-libraries with OMF-libraries of the same name.
|
|
|
235
|
Check http://sources.redhat.com/cygwin/ and http://www.mingw.org/ for more information
|
|
|
236
|
Then you have no POSIX emulation available, but you also don't need :file:`cygwin1.dll`.
|
|