mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
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.
This commit is contained in:
parent
de540e2288
commit
81ae235146
1 changed files with 8 additions and 1 deletions
9
setup.py
9
setup.py
|
@ -447,7 +447,14 @@ class PyBuildExt(build_ext):
|
||||||
exts.append( Extension('rgbimg', ['rgbimgmodule.c']) )
|
exts.append( Extension('rgbimg', ['rgbimgmodule.c']) )
|
||||||
|
|
||||||
# readline
|
# 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']
|
readline_libs = ['readline']
|
||||||
if self.compiler.find_library_file(lib_dirs,
|
if self.compiler.find_library_file(lib_dirs,
|
||||||
'ncursesw'):
|
'ncursesw'):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue