We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6c95fb commit 72cc1a7Copy full SHA for 72cc1a7
1 file changed
setup.py
@@ -15,6 +15,7 @@
15
from distutils.command.build_ext import build_ext
16
from distutils.command.install import install
17
from distutils.command.install_lib import install_lib
18
+from distutils.spawn import find_executable
19
20
# Were we compiled --with-pydebug or with #define Py_DEBUG?
21
COMPILED_WITH_PYDEBUG = hasattr(sys, 'gettotalrefcount')
@@ -591,7 +592,7 @@ def detect_modules(self):
591
592
readline_termcap_library = ""
593
curses_library = ""
594
# Determine if readline is already linked against curses or tinfo.
- if do_readline and platform != 'darwin': # OS X does not have ldd.
595
+ if do_readline and find_executable('ldd'):
596
fp = os.popen("ldd %s" % do_readline)
597
for ln in fp:
598
if 'curses' in ln:
0 commit comments