Mercurial > cpython-lru_cache-weakref
diff setup.py @ 36479:d496c0764ad6 legacy-trunk
Patch #428494: Prefer linking against ncursesw over ncurses library
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Sat, 11 Feb 2006 15:55:14 +0000 |
| parents | 3abf33264146 |
| children | 95800875bd12 |
line wrap: on
line diff
--- a/setup.py Sat Feb 11 15:30:36 2006 +0000 +++ b/setup.py Sat Feb 11 15:55:14 2006 +0000 @@ -450,6 +450,9 @@ if self.compiler.find_library_file(lib_dirs, 'readline'): readline_libs = ['readline'] if self.compiler.find_library_file(lib_dirs, + 'ncursesw'): + readline_libs.append('ncursesw') + elif self.compiler.find_library_file(lib_dirs, 'ncurses'): readline_libs.append('ncurses') elif self.compiler.find_library_file(lib_dirs, 'curses'): @@ -751,7 +754,11 @@ # Curses support, requiring the System V version of curses, often # provided by the ncurses library. - if (self.compiler.find_library_file(lib_dirs, 'ncurses')): + if (self.compiler.find_library_file(lib_dirs, 'ncursesw')): + curses_libs = ['ncursesw'] + exts.append( Extension('_curses', ['_cursesmodule.c'], + libraries = curses_libs) ) + elif (self.compiler.find_library_file(lib_dirs, 'ncurses')): curses_libs = ['ncurses'] exts.append( Extension('_curses', ['_cursesmodule.c'], libraries = curses_libs) )
