Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
67ca703a
Kaydet (Commit)
67ca703a
authored
Agu 07, 2004
tarafından
Andrew M. Kuchling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[Patch #862531] Update version numbers.
üst
8b2cbfd1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
inst.tex
Doc/inst/inst.tex
+13
-13
No files found.
Doc/inst/inst.tex
Dosyayı görüntüle @
67ca703a
...
...
@@ -273,12 +273,12 @@ being installed is pure Python or contains extensions (``non-pure''):
\begin{tableiv}
{
l|l|l|c
}{
textrm
}
%
{
Platform
}{
Standard installation location
}{
Default value
}{
Notes
}
\lineiv
{
\UNIX
{}
(pure)
}
{
\filenq
{
\filevar
{
prefix
}
/lib/python2.
0
/site-packages
}}
{
\filenq
{
/usr/local/lib/python2.
0
/site-packages
}}
{
\filenq
{
\filevar
{
prefix
}
/lib/python2.
4
/site-packages
}}
{
\filenq
{
/usr/local/lib/python2.
4
/site-packages
}}
{
(1)
}
\lineiv
{
\UNIX
{}
(non-pure)
}
{
\filenq
{
\filevar
{
exec-prefix
}
/lib/python2.
0
/site-packages
}}
{
\filenq
{
/usr/local/lib/python2.
0
/site-packages
}}
{
\filenq
{
\filevar
{
exec-prefix
}
/lib/python2.
4
/site-packages
}}
{
\filenq
{
/usr/local/lib/python2.
4
/site-packages
}}
{
(1)
}
\lineiv
{
Windows
}
{
\filenq
{
\filevar
{
prefix
}}}
...
...
@@ -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.
Under
\UNIX
, just type
\code
{
python
}
at the shell prompt. Under
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
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
\filevar
{
prefix
}
and
\filevar
{
exec-prefix
}
:
\begin{verbatim}
Python
1.5.2 (#1, Apr 18 1999, 16:03:16) [GCC pgcc-2.91.60] on linux2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
Python
2.4 (#26, Aug 7 2004, 17:19:02)
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.prefix
'/usr'
...
...
@@ -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
Microsoft Visual
\Cpp
, which uses COFF as the object file format.
)
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:
\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
}
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
have to convert them too.
...
...
@@ -1092,17 +1092,17 @@ First you have to create a list of symbols which the Python DLL exports.
PExports
0
.
42
h there.
)
\begin
{
verbatim
}
pexports python
2
0
.dll >python
20
.def
pexports python
2
4
.dll >python
24
.def
\end
{
verbatim
}
Then you can create from these information an import library for gcc.
\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
}
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.
)
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