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
2e26e23d
Kaydet (Commit)
2e26e23d
authored
Tem 17, 2010
tarafından
Stefan Krah
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #7384: On Gentoo, libreadline.so is a "fake library", so ldd fails.
In that case, do not attempt to parse stderr output.
üst
05b7631c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
setup.py
setup.py
+4
-2
No files found.
setup.py
Dosyayı görüntüle @
2e26e23d
...
@@ -594,7 +594,10 @@ class PyBuildExt(build_ext):
...
@@ -594,7 +594,10 @@ class PyBuildExt(build_ext):
# Determine if readline is already linked against curses or tinfo.
# Determine if readline is already linked against curses or tinfo.
if
do_readline
and
find_executable
(
'ldd'
):
if
do_readline
and
find_executable
(
'ldd'
):
fp
=
os
.
popen
(
"ldd
%
s"
%
do_readline
)
fp
=
os
.
popen
(
"ldd
%
s"
%
do_readline
)
for
ln
in
fp
:
ldd_output
=
fp
.
readlines
()
ret
=
fp
.
close
()
if
ret
is
None
or
ret
>>
8
==
0
:
for
ln
in
ldd_output
:
if
'curses'
in
ln
:
if
'curses'
in
ln
:
readline_termcap_library
=
re
.
sub
(
readline_termcap_library
=
re
.
sub
(
r'.*lib(n?cursesw?)\.so.*'
,
r'\1'
,
ln
r'.*lib(n?cursesw?)\.so.*'
,
r'\1'
,
ln
...
@@ -603,7 +606,6 @@ class PyBuildExt(build_ext):
...
@@ -603,7 +606,6 @@ class PyBuildExt(build_ext):
if
'tinfo'
in
ln
:
# termcap interface split out from ncurses
if
'tinfo'
in
ln
:
# termcap interface split out from ncurses
readline_termcap_library
=
'tinfo'
readline_termcap_library
=
'tinfo'
break
break
fp
.
close
()
# Issue 7384: If readline is already linked against curses,
# Issue 7384: If readline is already linked against curses,
# use the same library for the readline and curses modules.
# use the same library for the readline and curses modules.
if
'curses'
in
readline_termcap_library
:
if
'curses'
in
readline_termcap_library
:
...
...
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