Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c1e14df

Browse files
committed
Merged revisions 87283 via svnmerge from
svn+ssh://[email protected]/python/branches/py3k ........ r87283 | eric.araujo | 2010-12-15 23:06:35 +0100 (mer., 15 déc. 2010) | 2 lines Add disclaimer about MinGW compat in distutils docs (#6007). Patch by Chris Lambacher. ........
1 parent 5d899dd commit c1e14df

1 file changed

Lines changed: 23 additions & 16 deletions

File tree

Doc/install/index.rst

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -926,15 +926,34 @@ section :ref:`inst-config-files`.)
926926
GNU 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-
932929
This section describes the necessary steps to use Distutils with the GNU C/C++
933930
compilers in their Cygwin and MinGW distributions. [#]_ For a Python interpreter
934931
that was built with Cygwin, everything should work without any of these
935932
following 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
938957
for Borland's C++, because there is no program to convert the library. First
939958
you have to create a list of symbols which the Python DLL exports. (You can find
940959
a good program for this task at
@@ -964,18 +983,6 @@ If your extension uses other libraries (zlib,...) you might have to convert
964983
them too. The converted files have to reside in the same directories as the
965984
normal 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

Comments
 (0)