]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
backport 1.53 - prevent ncurses being built on Mac OS X.
authorAnthony Baxter <anthonybaxter@gmail.com>
Wed, 5 Dec 2001 06:55:46 +0000 (06:55 +0000)
committerAnthony Baxter <anthonybaxter@gmail.com>
Wed, 5 Dec 2001 06:55:46 +0000 (06:55 +0000)
setup.py

index 04111a1d992ac17f6d450901c3f270d0d0d13836..7b94235b18bb5a784720e21e42aa84520a3f6fbd 100644 (file)
--- 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: