]> granicus.if.org Git - python/commitdiff
[Patch #772077 from Tim Rice] Fix for compiling the readline module on UnixWare;...
authorAndrew M. Kuchling <amk@amk.ca>
Fri, 24 Oct 2003 18:26:26 +0000 (18:26 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Fri, 24 Oct 2003 18:26:26 +0000 (18:26 +0000)
setup.py

index 40dbf4b306bf9ef4903c4fa3ccd1022aaa281693..c444a617bb1d828cebf2469f2057ef7ef22704bf 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -278,8 +278,8 @@ class PyBuildExt(build_ext):
             inc_dirs += ['/system/include', '/atheos/autolnk/include']
             inc_dirs += os.getenv('C_INCLUDE_PATH', '').split(os.pathsep)
 
-        # OSF/1 has some stuff in /usr/ccs/lib (like -ldb)
-        if platform == 'osf1':
+        # OSF/1 and Unixware have some stuff in /usr/ccs/lib (like -ldb)
+        if platform in ['osf1', 'unixware7', 'openunix8']:
             lib_dirs += ['/usr/ccs/lib']
 
         # Check for MacOS X, which doesn't need libm.a at all
@@ -420,7 +420,7 @@ class PyBuildExt(build_ext):
                                    library_dirs=['/usr/lib/termcap'],
                                    libraries=readline_libs) )
         if platform not in ['mac']:
-                # crypt module.
+            # crypt module.
 
             if self.compiler.find_library_file(lib_dirs, 'crypt'):
                 libs = ['crypt']