File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -310,16 +310,18 @@ def detect_modules(self):
310310 # readline
311311 if self .compiler .find_library_file (lib_dirs , 'readline' ):
312312 readline_libs = ['readline' ]
313- if self .compiler .find_library_file (lib_dirs +
313+ if self .compiler .find_library_file (lib_dirs ,
314+ 'ncurses' ):
315+ readline_libs .append ('ncurses' )
316+ elif self .compiler .find_library_file (lib_dirs +
314317 ['/usr/lib/termcap' ],
315318 'termcap' ):
316319 readline_libs .append ('termcap' )
317320 exts .append ( Extension ('readline' , ['readline.c' ],
318321 library_dirs = ['/usr/lib/termcap' ],
319322 libraries = readline_libs ) )
320323
321- # The crypt module is now disabled by default because it breaks builds
322- # on many systems (where -lcrypt is needed), e.g. Linux (I believe).
324+ # crypt module.
323325
324326 if self .compiler .find_library_file (lib_dirs , 'crypt' ):
325327 libs = ['crypt' ]
You can’t perform that action at this time.
0 commit comments