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
67ca703a
Commit
67ca703a
authored
Aug 07, 2004
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Patch #862531] Update version numbers.
parent
8b2cbfd1
Changes
1
Show 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 @
67ca703a
...
@@ -273,12 +273,12 @@ being installed is pure Python or contains extensions (``non-pure''):
...
@@ -273,12 +273,12 @@ being installed is pure Python or contains extensions (``non-pure''):
\begin{tableiv}
{
l|l|l|c
}{
textrm
}
%
\begin{tableiv}
{
l|l|l|c
}{
textrm
}
%
{
Platform
}{
Standard installation location
}{
Default value
}{
Notes
}
{
Platform
}{
Standard installation location
}{
Default value
}{
Notes
}
\lineiv
{
\UNIX
{}
(pure)
}
\lineiv
{
\UNIX
{}
(pure)
}
{
\filenq
{
\filevar
{
prefix
}
/lib/python2.
0
/site-packages
}}
{
\filenq
{
\filevar
{
prefix
}
/lib/python2.
4
/site-packages
}}
{
\filenq
{
/usr/local/lib/python2.
0
/site-packages
}}
{
\filenq
{
/usr/local/lib/python2.
4
/site-packages
}}
{
(1)
}
{
(1)
}
\lineiv
{
\UNIX
{}
(non-pure)
}
\lineiv
{
\UNIX
{}
(non-pure)
}
{
\filenq
{
\filevar
{
exec-prefix
}
/lib/python2.
0
/site-packages
}}
{
\filenq
{
\filevar
{
exec-prefix
}
/lib/python2.
4
/site-packages
}}
{
\filenq
{
/usr/local/lib/python2.
0
/site-packages
}}
{
\filenq
{
/usr/local/lib/python2.
4
/site-packages
}}
{
(1)
}
{
(1)
}
\lineiv
{
Windows
}
\lineiv
{
Windows
}
{
\filenq
{
\filevar
{
prefix
}}}
{
\filenq
{
\filevar
{
prefix
}}}
...
@@ -314,15 +314,15 @@ installation uses for \filevar{prefix} and \filevar{exec-prefix} by
...
@@ -314,15 +314,15 @@ installation uses for \filevar{prefix} and \filevar{exec-prefix} by
running Python in interactive mode and typing a few simple commands.
running Python in interactive mode and typing a few simple commands.
Under
\UNIX
, just type
\code
{
python
}
at the shell prompt. Under
Under
\UNIX
, just type
\code
{
python
}
at the shell prompt. Under
Windows, choose
\menuselection
{
Start
\sub
Programs
\sub
Python
Windows, choose
\menuselection
{
Start
\sub
Programs
\sub
Python
2.
1
\sub
Python (command line)
}
. Under Mac OS 9, start
\file
{
PythonInterpreter
}
.
2.
4
\sub
Python (command line)
}
. Under Mac OS 9, start
\file
{
PythonInterpreter
}
.
Once the interpreter is started, you type Python code at the
Once the interpreter is started, you type Python code at the
prompt. For example, on my Linux system, I type the three Python
prompt. For example, on my Linux system, I type the three Python
statements shown below, and get the output as shown, to find out my
statements shown below, and get the output as shown, to find out my
\filevar
{
prefix
}
and
\filevar
{
exec-prefix
}
:
\filevar
{
prefix
}
and
\filevar
{
exec-prefix
}
:
\begin{verbatim}
\begin{verbatim}
Python
1.5.2 (#1, Apr 18 1999, 16:03:16) [GCC pgcc-2.91.60] on linux2
Python
2.4 (#26, Aug 7 2004, 17:19:02)
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> import sys
>>> sys.prefix
>>> sys.prefix
'/usr'
'/usr'
...
@@ -1023,15 +1023,15 @@ different from the format used by the Python version you can download
...
@@ -1023,15 +1023,15 @@ different from the format used by the Python version you can download
from the Python or ActiveState Web site.
(
Python is built with
from the Python or ActiveState Web site.
(
Python is built with
Microsoft Visual
\Cpp
, which uses COFF as the object file format.
)
Microsoft Visual
\Cpp
, which uses COFF as the object file format.
)
For this reason you have to convert Python's library
For this reason you have to convert Python's library
\file
{
python
2
0
.lib
}
into the Borland format. You can do this as
\file
{
python
2
4
.lib
}
into the Borland format. You can do this as
follows:
follows:
\begin
{
verbatim
}
\begin
{
verbatim
}
coff
2
omf python
2
0
.lib python
20
_
bcpp.lib
coff
2
omf python
2
4
.lib python
24
_
bcpp.lib
\end
{
verbatim
}
\end
{
verbatim
}
The
\file
{
coff
2
omf
}
program comes with the Borland compiler. The file
The
\file
{
coff
2
omf
}
program comes with the Borland compiler. The file
\file
{
python
2
0
.lib
}
is in the
\file
{
Libs
}
directory of your Python
\file
{
python
2
4
.lib
}
is in the
\file
{
Libs
}
directory of your Python
installation. If your extension uses other libraries
(
zlib,...
)
you
installation. If your extension uses other libraries
(
zlib,...
)
you
have to convert them too.
have to convert them too.
...
@@ -1092,17 +1092,17 @@ First you have to create a list of symbols which the Python DLL exports.
...
@@ -1092,17 +1092,17 @@ First you have to create a list of symbols which the Python DLL exports.
PExports
0
.
42
h there.
)
PExports
0
.
42
h there.
)
\begin
{
verbatim
}
\begin
{
verbatim
}
pexports python
2
0
.dll >python
20
.def
pexports python
2
4
.dll >python
24
.def
\end
{
verbatim
}
\end
{
verbatim
}
Then you can create from these information an import library for gcc.
Then you can create from these information an import library for gcc.
\begin
{
verbatim
}
\begin
{
verbatim
}
dlltool
--
dllname python
2
0
.dll
--
def python
20
.def
--
output
-
lib libpython
20
.a
dlltool
--
dllname python
2
4
.dll
--
def python
24
.def
--
output
-
lib libpython
24
.a
\end
{
verbatim
}
\end
{
verbatim
}
The resulting library has to be placed in the same directory as
The resulting library has to be placed in the same directory as
\file
{
python
2
0
.lib
}
.
(
Should be the
\file
{
libs
}
directory under your
\file
{
python
2
4
.lib
}
.
(
Should be the
\file
{
libs
}
directory under your
Python installation directory.
)
Python installation directory.
)
If your extension uses other libraries
(
zlib,...
)
you might
If your extension uses other libraries
(
zlib,...
)
you might
...
...
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