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
cfe34744
Kaydet (Commit)
cfe34744
authored
Şub 04, 2013
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix find_library on Solaris (closes #5289)
üst
7a34f02f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
0 deletions
+32
-0
util.py
Lib/ctypes/util.py
+29
-0
ACKS
Misc/ACKS
+1
-0
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/ctypes/util.py
Dosyayı görüntüle @
cfe34744
...
...
@@ -166,6 +166,35 @@ elif os.name == "posix":
res
.
sort
(
key
=
_num_version
)
return
res
[
-
1
]
elif
sys
.
platform
==
"sunos5"
:
def
_findLib_crle
(
name
,
is64
):
if
not
os
.
path
.
exists
(
'/usr/bin/crle'
):
return
None
if
is64
:
cmd
=
'env LC_ALL=C /usr/bin/crle -64 2>/dev/null'
else
:
cmd
=
'env LC_ALL=C /usr/bin/crle 2>/dev/null'
for
line
in
os
.
popen
(
cmd
)
.
readlines
():
line
=
line
.
strip
()
if
line
.
startswith
(
'Default Library Path (ELF):'
):
paths
=
line
.
split
()[
4
]
if
not
paths
:
return
None
for
dir
in
paths
.
split
(
":"
):
libfile
=
os
.
path
.
join
(
dir
,
"lib
%
s.so"
%
name
)
if
os
.
path
.
exists
(
libfile
):
return
libfile
return
None
def
find_library
(
name
,
is64
=
False
):
return
_get_soname
(
_findLib_crle
(
name
,
is64
)
or
_findLib_gcc
(
name
))
else
:
def
_findSoname_ldconfig
(
name
):
...
...
Misc/ACKS
Dosyayı görüntüle @
cfe34744
...
...
@@ -1250,6 +1250,7 @@ Richard Walker
Larry Wall
Kevin Walzer
Rodrigo Steinmuller Wanderley
Ke Wang
Greg Ward
Zachary Ware
Barry Warsaw
...
...
Misc/NEWS
Dosyayı görüntüle @
cfe34744
...
...
@@ -163,6 +163,8 @@ Core and Builtins
Library
-------
- Issue #5289: Fix ctypes.util.find_library on Solaris.
- Issue #17106: Fix a segmentation fault in io.TextIOWrapper when an underlying
stream or a decoder produces data of an unexpected type (i.e. when
io.TextIOWrapper initialized with text stream or use bytes-to-bytes codec).
...
...
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