@@ -926,15 +926,34 @@ section :ref:`inst-config-files`.)
926926GNU C / Cygwin / MinGW
927927^^^^^^^^^^^^^^^^^^^^^^
928928
929- These instructions only apply if you're using a version of Python prior to
930- 2.4.1 with a MinGW prior to 3.0.0 (with binutils-2.13.90-20030111-1).
931-
932929This section describes the necessary steps to use Distutils with the GNU C/C++
933930compilers in their Cygwin and MinGW distributions. [# ]_ For a Python interpreter
934931that was built with Cygwin, everything should work without any of these
935932following steps.
936933
937- These compilers require some special libraries. This task is more complex than
934+ Not all extensions can be built with MinGW or Cygwin, but many can. Extensions
935+ most likely to not work are those that use C++ or depend on Microsoft Visual C
936+ extensions.
937+
938+ To let Distutils compile your extension with Cygwin you have to type::
939+
940+ python setup.py build --compiler=cygwin
941+
942+ and for Cygwin in no-cygwin mode [# ]_ or for MinGW type::
943+
944+ python setup.py build --compiler=mingw32
945+
946+ If you want to use any of these options/compilers as default, you should
947+ consider writing it in your personal or system-wide configuration file for
948+ Distutils (see section :ref: `inst-config-files `.)
949+
950+ Older Versions of Python and MinGW
951+ """"""""""""""""""""""""""""""""""
952+ The following instructions only apply if you're using a version of Python
953+ inferior to 2.4.1 with a MinGW inferior to 3.0.0 (with
954+ binutils-2.13.90-20030111-1).
955+
956+ These compilers require some special libraries. This task is more complex than
938957for Borland's C++, because there is no program to convert the library. First
939958you have to create a list of symbols which the Python DLL exports. (You can find
940959a good program for this task at
@@ -964,18 +983,6 @@ If your extension uses other libraries (zlib,...) you might have to convert
964983them too. The converted files have to reside in the same directories as the
965984normal libraries do.
966985
967- To let Distutils compile your extension with Cygwin you now have to type ::
968-
969- python setup.py build --compiler=cygwin
970-
971- and for Cygwin in no-cygwin mode [# ]_ or for MinGW type::
972-
973- python setup.py build --compiler=mingw32
974-
975- If you want to use any of these options/compilers as default, you should
976- consider to write it in your personal or system-wide configuration file for
977- Distutils (see section :ref: `inst-config-files `.)
978-
979986
980987.. seealso ::
981988
0 commit comments