From: Jack Jansen Date: Thu, 27 Dec 2001 21:51:02 +0000 (+0000) Subject: Don;t build curses on MacOSX 10.1 or later. This is patch 496905, and X-Git-Tag: v2.1.2c1~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cec94a5c434db2d6e9a65eb5ddaa93517bb1fa93;p=thirdparty%2FPython%2Fcpython.git Don;t build curses on MacOSX 10.1 or later. This is patch 496905, and Anthony asked me to check it in. --- diff --git a/setup.py b/setup.py index 7b94235b18bb..e41983ede98a 100644 --- a/setup.py +++ b/setup.py @@ -410,7 +410,7 @@ 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')) and platform != 'darwin1': + elif (self.compiler.find_library_file(lib_dirs, 'curses')) and platform[:6] != 'darwin': # 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']