From: Andrew M. Kuchling Date: Thu, 16 Aug 2001 20:30:18 +0000 (+0000) Subject: Link readline module with ncurses in preference to termcap. [Bug ##441580] X-Git-Tag: v2.2a3~493 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5aa3c4af76a1ed08cf275bb049cfa3ebe9758386;p=python Link readline module with ncurses in preference to termcap. [Bug ##441580] Remove pointless comment --- diff --git a/setup.py b/setup.py index e717411c0e..8d97854268 100644 --- a/setup.py +++ b/setup.py @@ -310,7 +310,10 @@ class PyBuildExt(build_ext): # readline if self.compiler.find_library_file(lib_dirs, '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'], 'termcap'): readline_libs.append('termcap') @@ -318,8 +321,7 @@ class PyBuildExt(build_ext): library_dirs=['/usr/lib/termcap'], libraries=readline_libs) ) - # The crypt module is now disabled by default because it breaks builds - # on many systems (where -lcrypt is needed), e.g. Linux (I believe). + # crypt module. if self.compiler.find_library_file(lib_dirs, 'crypt'): libs = ['crypt']