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
10acfd00
Kaydet (Commit)
10acfd00
authored
Nis 10, 2006
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Patch #1429775: Link Python modules to libpython on linux if
--enable-shared. Fixes #832799.
üst
b04dee93
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
4 deletions
+26
-4
build_ext.py
Lib/distutils/command/build_ext.py
+11
-2
sysconfig.py
Lib/distutils/sysconfig.py
+13
-2
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/distutils/command/build_ext.py
Dosyayı görüntüle @
10acfd00
...
...
@@ -185,7 +185,9 @@ class build_ext (Command):
# for extensions under Cygwin and AtheOS Python's library directory must be
# appended to library_dirs
if
sys
.
platform
[:
6
]
==
'cygwin'
or
sys
.
platform
[:
6
]
==
'atheos'
:
if
sys
.
platform
[:
6
]
==
'cygwin'
or
sys
.
platform
[:
6
]
==
'atheos'
or
\
(
sys
.
platform
.
startswith
(
'linux'
)
and
sysconfig
.
get_config_var
(
'Py_ENABLE_SHARED'
)):
if
string
.
find
(
sys
.
executable
,
sys
.
exec_prefix
)
!=
-
1
:
# building third party extensions
self
.
library_dirs
.
append
(
os
.
path
.
join
(
sys
.
prefix
,
"lib"
,
...
...
@@ -688,6 +690,13 @@ class build_ext (Command):
# extensions, it is a reference to the original list
return
ext
.
libraries
+
[
pythonlib
,
"m"
]
+
extra
else
:
return
ext
.
libraries
from
distutils
import
sysconfig
if
sysconfig
.
get_config_var
(
'Py_ENABLE_SHARED'
):
template
=
"python
%
d.
%
d"
pythonlib
=
(
template
%
(
sys
.
hexversion
>>
24
,
(
sys
.
hexversion
>>
16
)
&
0xff
))
return
ext
.
libraries
+
[
pythonlib
]
else
:
return
ext
.
libraries
# class build_ext
Lib/distutils/sysconfig.py
Dosyayı görüntüle @
10acfd00
...
...
@@ -213,8 +213,8 @@ def parse_config_h(fp, g=None):
"""
if
g
is
None
:
g
=
{}
define_rx
=
re
.
compile
(
"#define ([A-Z][A-Z0-9_]+) (.*)
\n
"
)
undef_rx
=
re
.
compile
(
"/[*] #undef ([A-Z][A-Z0-9_]+) [*]/
\n
"
)
define_rx
=
re
.
compile
(
"#define ([A-Z][A-Z
a-z
0-9_]+) (.*)
\n
"
)
undef_rx
=
re
.
compile
(
"/[*] #undef ([A-Z][A-Z
a-z
0-9_]+) [*]/
\n
"
)
#
while
1
:
line
=
fp
.
readline
()
...
...
@@ -351,6 +351,17 @@ def _init_posix():
raise
DistutilsPlatformError
(
my_msg
)
# load the installed pyconfig.h:
try
:
filename
=
get_config_h_filename
()
parse_config_h
(
file
(
filename
),
g
)
except
IOError
,
msg
:
my_msg
=
"invalid Python installation: unable to open
%
s"
%
filename
if
hasattr
(
msg
,
"strerror"
):
my_msg
=
my_msg
+
" (
%
s)"
%
msg
.
strerror
raise
DistutilsPlatformError
(
my_msg
)
# On MacOSX we need to check the setting of the environment variable
# MACOSX_DEPLOYMENT_TARGET: configure bases some choices on it so
# it needs to be compatible.
...
...
Misc/NEWS
Dosyayı görüntüle @
10acfd00
...
...
@@ -33,6 +33,8 @@ Library
Build
-----
- Patch #1429775: Link extension modules with the shared libpython.
C API
-----
...
...
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