Commit 7fdacde4 authored by Antoine Pitrou's avatar Antoine Pitrou

Try to fix compilation failure under OS X

parent a7cc074b
......@@ -597,7 +597,7 @@ class PyBuildExt(build_ext):
if not os.path.exists(self.build_temp):
os.makedirs(self.build_temp)
ret = os.system("ldd %s > %s" % (do_readline, tmpfile))
if ret >> 8 == 0:
if ret == 0:
with open(tmpfile) as fp:
for ln in fp:
if 'curses' in ln:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment