[Python-checkins] r42562 - python/trunk/setup.py
jack.jansen
python-checkins at python.org
Thu Feb 23 16:02:25 CET 2006
Author: jack.jansen
Date: Thu Feb 23 16:02:23 2006
New Revision: 42562
Modified:
python/trunk/setup.py
Log:
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.
Modified: python/trunk/setup.py
==============================================================================
--- python/trunk/setup.py (original)
+++ python/trunk/setup.py Thu Feb 23 16:02:23 2006
@@ -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'):
More information about the Python-checkins
mailing list