From e6370746c4fbbb6aabd4b108a4deb16e99dad90f Mon Sep 17 00:00:00 2001 From: Anthony Baxter Date: Wed, 5 Dec 2001 06:55:46 +0000 Subject: [PATCH] backport 1.53 - prevent ncurses being built on Mac OS X. --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- 2.47.3