Mercurial > cpython-lru_cache-weakref
diff setup.py @ 36480:ae1da5124382 2.4
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:22 +0000 |
| parents | e97818bc2919 |
| children | 72a720dd64fb |
line wrap: on
line diff
--- a/setup.py Sat Feb 11 15:30:59 2006 +0000 +++ b/setup.py Sat Feb 11 15:55:22 2006 +0000 @@ -425,6 +425,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'): @@ -678,7 +681,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) )
