]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Don;t build curses on MacOSX 10.1 or later. This is patch 496905, and
authorJack Jansen <jack.jansen@cwi.nl>
Thu, 27 Dec 2001 21:51:02 +0000 (21:51 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Thu, 27 Dec 2001 21:51:02 +0000 (21:51 +0000)
Anthony asked me to check it in.

setup.py

index 7b94235b18bb5a784720e21e42aa84520a3f6fbd..e41983ede98a5cf5b0fed8d61d1003889c2a3775 100644 (file)
--- 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']