diff options
author | Fred Drake <fdrake@acm.org> | 2001-03-03 19:47:24 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-03-03 19:47:24 (GMT) |
commit | 42119e49a99d5257409b2d986d602811b326d7d7 (patch) | |
tree | 06f4b036a6f0d69d4c96c3e314fc882f7ded8024 /Doc/inst | |
parent | f585bef5043972b042cb324e75c82ee07fd56fa2 (diff) | |
download | cpython-42119e49a99d5257409b2d986d602811b326d7d7.zip cpython-42119e49a99d5257409b2d986d602811b326d7d7.tar.gz cpython-42119e49a99d5257409b2d986d602811b326d7d7.tar.bz2 |
Fix a few minor markup nits.
Diffstat (limited to 'Doc/inst')
-rw-r--r-- | Doc/inst/inst.tex | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/Doc/inst/inst.tex b/Doc/inst/inst.tex index 4d4f6be..fafcc64 100644 --- a/Doc/inst/inst.tex +++ b/Doc/inst/inst.tex @@ -291,7 +291,7 @@ where \code{<plat>} expands to a brief description of the current OS/hardware platform and Python version. The first form, with just a \file{lib} directory, is used for ``pure module distributions''---that is, module distributions that include only pure Python modules. If a -module distribution contains any extensions (modules written in C/C++), +module distribution contains any extensions (modules written in C/\Cpp), then the second form, with two \code{<plat>} directories, is used. In that case, the \file{temp.\filevar{plat}} directory holds temporary files generated by the compile/link process that don't actually get @@ -434,15 +434,14 @@ build. Things to talk about: \subsubsection{Borland C++} This subsection describes the necessary steps to use Distutils with the -Borland C++ compiler version -5.5.\footnote{Check +Borland \Cpp{} compiler version 5.5.\footnote{Check \url{http://www.borland.com/bcppbuilder/freecompiler/} for download} %Should we mention that users have to create cfg-files for the compiler %see also http://community.borland.com/article/0,1410,21205,00.html First you have to know that the Borland's object file format(OMF) is different from what is used by the Python version you can download -from the Python web site. (Python is built with Microsoft Visual C++, +from the Python web site. (Python is built with Microsoft Visual \Cpp, which uses COFF as object file format.) For this reason you have to convert Python's library \file{python20.lib} into the Borland format. You can do this as follows: @@ -456,8 +455,8 @@ The \file{coff2omf} program comes with the Borland compiler. The file installation. If your extension uses other libraries (zlib,...) you have to convert them too. -The converted files have to reside in the same directories as the normal -libraries do. +The converted files have to reside in the same directories as the +normal libraries. How does Distutils manage to use these libraries with their changed names? If the extension needs a library (eg. \file{foo}) Distutils @@ -467,7 +466,7 @@ doesn't find such a special library it uses the default name (\file{foo.lib}.)\footnote{This also means you could replace all existing COFF-libraries with OMF-libraries of the same name.} -To let Distutils compile your extension with Borland C++ you now have +To let Distutils compile your extension with Borland \Cpp{} you now have to type: \begin{verbatim} @@ -484,22 +483,23 @@ file for Distutils (see section~\ref{config-files}.) \subsubsection{GNU C / Cygwin / MinGW32} This section describes the necessary steps to use Distutils with the -GNU C/C++ compilers in their Cygwin and MinGW32 -distributions\footnote{Check +GNU C/\Cpp{} compilers in their Cygwin and MinGW32 +distributions.\footnote{Check \url{http://sources.redhat.com/cygwin/} and -\url{http://www.mingw.org} for more information}. +\url{http://www.mingw.org} for more information} \XXX{For a Python which was built with Cygwin, all should work without any of these following steps.} For these compilers we have to create some special libraries too. -This task is more complex as for Borland's C++, because there is no -program to convert the library (inclusive the references on data structures.) +This task is more complex as for Borland's \Cpp, because there is no +program to convert the library (inclusive the references on data +structures.) First you have to create a list of symbols which the Python DLL exports. (You can find a good program for this task at \url{http://starship.python.net/crew/kernr/mingw32/Notes.html}, see at -PExports 0.42h there.) +PExports 0.42h there.) \begin{verbatim} pexports python20.dll >python20.def |