]> granicus.if.org Git - python/commitdiff
Disabled _curses modules on MacOSX. The curses version is a 1994 BSD
authorJack Jansen <jack.jansen@cwi.nl>
Tue, 4 Sep 2001 09:05:11 +0000 (09:05 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Tue, 4 Sep 2001 09:05:11 +0000 (09:05 +0000)
curses, far too old for _cursesmodule.c.

setup.py

index 88a70d3ed7b974b3fec1029af6975d616d3b4c3c..61e75de0eae37ead125e0988b0050a99c5ffc19d 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -451,7 +451,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: