From: Anthony Baxter Date: Wed, 5 Dec 2001 06:55:46 +0000 (+0000) Subject: backport 1.53 - prevent ncurses being built on Mac OS X. X-Git-Tag: v2.1.2c1~54 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e6370746c4fbbb6aabd4b108a4deb16e99dad90f;p=thirdparty%2FPython%2Fcpython.git backport 1.53 - prevent ncurses being built on Mac OS X. --- diff --git a/setup.py b/setup.py index 04111a1d992a..7b94235b18bb 100644 --- a/setup.py +++ b/setup.py @@ -410,7 +410,8 @@ class PyBuildExt(build_ext): curses_libs = ['ncurses'] exts.append( Extension('_curses', ['_cursesmodule.c'], libraries = curses_libs) ) - elif (self.compiler.find_library_file(lib_dirs, 'curses')): + elif (self.compiler.find_library_file(lib_dirs, 'curses')) and platform != 'darwin1': + # OSX has an old Berkeley curses, not good enough for the _curses module. if (self.compiler.find_library_file(lib_dirs, 'terminfo')): curses_libs = ['curses', 'terminfo'] else: