Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f7902c commit 4c99071Copy full SHA for 4c99071
1 file changed
setup.py
@@ -657,7 +657,7 @@ def detect_modules(self):
657
ret = os.system("ldd %s > %s" % (do_readline, tmpfile))
658
else:
659
ret = 256
660
- if ret == 0:
+ if ret >> 8 == 0:
661
with open(tmpfile) as fp:
662
for ln in fp:
663
if 'curses' in ln:
@@ -669,7 +669,8 @@ def detect_modules(self):
669
if 'tinfo' in ln:
670
readline_termcap_library = 'tinfo'
671
break
672
- os.unlink(tmpfile)
+ if os.path.exists(tmpfile):
673
+ os.unlink(tmpfile)
674
# Issue 7384: If readline is already linked against curses,
675
# use the same library for the readline and curses modules.
676
if 'curses' in readline_termcap_library:
0 commit comments