]> granicus.if.org Git - python/commitdiff
Link readline module with ncurses in preference to termcap. [Bug ##441580]
authorAndrew M. Kuchling <amk@amk.ca>
Thu, 16 Aug 2001 20:30:18 +0000 (20:30 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Thu, 16 Aug 2001 20:30:18 +0000 (20:30 +0000)
Remove pointless comment

setup.py

index e717411c0e090b7e8d7d18dccbddb29dd2f25bf0..8d97854268d6d0fc29f58fb219fab934ef755d02 100644 (file)
--- 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']