Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
42119e49
Commit
42119e49
authored
Mar 03, 2001
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a few minor markup nits.
parent
f585bef5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
Doc/inst/inst.tex
Doc/inst/inst.tex
+13
-13
No files found.
Doc/inst/inst.tex
View file @
42119e49
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment