mirror of https://github.com/python/cpython
Link readline module with ncurses in preference to termcap. [Bug ##441580]
Remove pointless comment
This commit is contained in:
parent
db7aed5219
commit
5aa3c4af76
8
setup.py
8
setup.py
|
@ -310,7 +310,10 @@ class PyBuildExt(build_ext):
|
||||||
# readline
|
# readline
|
||||||
if self.compiler.find_library_file(lib_dirs, 'readline'):
|
if self.compiler.find_library_file(lib_dirs, 'readline'):
|
||||||
readline_libs = ['readline']
|
readline_libs = ['readline']
|
||||||
if self.compiler.find_library_file(lib_dirs +
|
if self.compiler.find_library_file(lib_dirs,
|
||||||
|
'ncurses'):
|
||||||
|
readline_libs.append('ncurses')
|
||||||
|
elif self.compiler.find_library_file(lib_dirs +
|
||||||
['/usr/lib/termcap'],
|
['/usr/lib/termcap'],
|
||||||
'termcap'):
|
'termcap'):
|
||||||
readline_libs.append('termcap')
|
readline_libs.append('termcap')
|
||||||
|
@ -318,8 +321,7 @@ class PyBuildExt(build_ext):
|
||||||
library_dirs=['/usr/lib/termcap'],
|
library_dirs=['/usr/lib/termcap'],
|
||||||
libraries=readline_libs) )
|
libraries=readline_libs) )
|
||||||
|
|
||||||
# The crypt module is now disabled by default because it breaks builds
|
# crypt module.
|
||||||
# on many systems (where -lcrypt is needed), e.g. Linux (I believe).
|
|
||||||
|
|
||||||
if self.compiler.find_library_file(lib_dirs, 'crypt'):
|
if self.compiler.find_library_file(lib_dirs, 'crypt'):
|
||||||
libs = ['crypt']
|
libs = ['crypt']
|
||||||
|
|
Loading…
Reference in New Issue