diff setup.py @ 16804:8156879fe60d legacy-trunk

Patch #404680: disables the nis module and enables the dl module when building under Cygwin. Makes some fixes to the dlmodule in order to compile with Cygwin.
author Andrew M. Kuchling <amk@amk.ca>
date Tue, 27 Feb 2001 20:54:23 +0000
parents 90e90c92198b
children 76a684fe3f7f
line wrap: on
line diff
--- a/setup.py	Tue Feb 27 20:23:58 2001 +0000
+++ b/setup.py	Tue Feb 27 20:54:23 2001 +0000
@@ -387,12 +387,13 @@
             exts.append( Extension('dl', ['dlmodule.c']) )
             
             # Sun yellow pages. Some systems have the functions in libc.
-            if (self.compiler.find_library_file(lib_dirs, 'nsl')):
-                libs = ['nsl']
-            else:
-                libs = []
-            exts.append( Extension('nis', ['nismodule.c'],
-                                   libraries = libs) )
+            if platform not in ['cygwin']:
+                if (self.compiler.find_library_file(lib_dirs, 'nsl')):
+                    libs = ['nsl']
+                else:
+                    libs = []
+                exts.append( Extension('nis', ['nismodule.c'],
+                                       libraries = libs) )
 
         # Curses support, requring the System V version of curses, often
         # provided by the ncurses library.