diff options
author | Éric Araujo <merwok@netwok.org> | 2010-12-15 22:07:54 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2010-12-15 22:07:54 (GMT) |
commit | c1e14dffeb135d36af9141ff0b633263fe9e9884 (patch) | |
tree | bd36583444e4fa9394be0be8a299d3b594ef8564 /Doc | |
parent | 5d899dddb205f7e2d24e5d1737950b304c965721 (diff) | |
download | cpython-c1e14dffeb135d36af9141ff0b633263fe9e9884.zip cpython-c1e14dffeb135d36af9141ff0b633263fe9e9884.tar.gz cpython-c1e14dffeb135d36af9141ff0b633263fe9e9884.tar.bz2 |
Merged revisions 87283 via svnmerge from
svn+ssh://pythondev@svn.python.org/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.
........
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/install/index.rst | 39 |
1 files changed, 23 insertions, 16 deletions
diff --git a/Doc/install/index.rst b/Doc/install/index.rst index 525a3ef..43286ac 100644 --- a/Doc/install/index.rst +++ b/Doc/install/index.rst @@ -926,15 +926,34 @@ section :ref:`inst-config-files`.) GNU C / Cygwin / MinGW ^^^^^^^^^^^^^^^^^^^^^^ -These instructions only apply if you're using a version of Python prior to -2.4.1 with a MinGW prior to 3.0.0 (with binutils-2.13.90-20030111-1). - This section describes the necessary steps to use Distutils with the GNU C/C++ compilers in their Cygwin and MinGW distributions. [#]_ For a Python interpreter that was built with Cygwin, everything should work without any of these following steps. -These compilers require some special libraries. This task is more complex than +Not all extensions can be built with MinGW or Cygwin, but many can. Extensions +most likely to not work are those that use C++ or depend on Microsoft Visual C +extensions. + +To let Distutils compile your extension with Cygwin you have to type:: + + python setup.py build --compiler=cygwin + +and for Cygwin in no-cygwin mode [#]_ or for MinGW type:: + + python setup.py build --compiler=mingw32 + +If you want to use any of these options/compilers as default, you should +consider writing it in your personal or system-wide configuration file for +Distutils (see section :ref:`inst-config-files`.) + +Older Versions of Python and MinGW +"""""""""""""""""""""""""""""""""" +The following instructions only apply if you're using a version of Python +inferior to 2.4.1 with a MinGW inferior to 3.0.0 (with +binutils-2.13.90-20030111-1). + +These compilers require some special libraries. This task is more complex than for Borland's C++, because there is no program to convert the library. First you have to create a list of symbols which the Python DLL exports. (You can find a good program for this task at @@ -964,18 +983,6 @@ 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. -To let Distutils compile your extension with Cygwin you now have to type :: - - python setup.py build --compiler=cygwin - -and for Cygwin in no-cygwin mode [#]_ or for MinGW type:: - - python setup.py build --compiler=mingw32 - -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`.) - .. seealso:: |