Mercurial > cpython-lru_cache-weakref
diff setup.py @ 36648:95800875bd12 legacy-trunk
If the readline library is found try and determine whether it's the broken
MacOSX 10.4 readline, and don't build the readline module in that case.
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Thu, 23 Feb 2006 15:02:23 +0000 |
| parents | d496c0764ad6 |
| children | 8410f06ad36e |
line wrap: on
line diff
--- a/setup.py Thu Feb 23 14:54:30 2006 +0000 +++ b/setup.py Thu Feb 23 15:02:23 2006 +0000 @@ -447,7 +447,14 @@ exts.append( Extension('rgbimg', ['rgbimgmodule.c']) ) # readline - if self.compiler.find_library_file(lib_dirs, 'readline'): + do_readline = self.compiler.find_library_file(lib_dirs, 'readline') + if platform == 'darwin': + # MacOSX 10.4 has a broken readline. Don't try to build + # the readline module unless the user has installed a fixed + # readline package + if not find_file('readline/rlconf.h', inc_dirs, []): + do_readline = False + if do_readline: readline_libs = ['readline'] if self.compiler.find_library_file(lib_dirs, 'ncursesw'):
