Mercurial > cpython-lru_cache-weakref
diff setup.py @ 62060:cb4fa3e4b8d5 legacy-trunk
Detect missing ldd on all systems.
| author | Stefan Krah <stefan@bytereef.org> |
|---|---|
| date | Fri, 04 Jun 2010 09:49:20 +0000 |
| parents | 8825a7e6a5f0 |
| children | a3dd39e36c9d |
line wrap: on
line diff
--- a/setup.py Fri Jun 04 01:51:26 2010 +0000 +++ b/setup.py Fri Jun 04 09:49:20 2010 +0000 @@ -15,6 +15,7 @@ from distutils.command.build_ext import build_ext from distutils.command.install import install from distutils.command.install_lib import install_lib +from distutils.spawn import find_executable # Were we compiled --with-pydebug or with #define Py_DEBUG? COMPILED_WITH_PYDEBUG = hasattr(sys, 'gettotalrefcount') @@ -591,7 +592,7 @@ readline_termcap_library = "" curses_library = "" # Determine if readline is already linked against curses or tinfo. - if do_readline and platform != 'darwin': # OS X does not have ldd. + if do_readline and find_executable('ldd'): fp = os.popen("ldd %s" % do_readline) for ln in fp: if 'curses' in ln:
