diff setup.py @ 16721:4db0fddb6917 legacy-trunk

Patch #103544: always compile the dl and nis modules on Unix; let's see where they break.
author Andrew M. Kuchling <amk@amk.ca>
date Wed, 21 Feb 2001 02:38:24 +0000
parents ab02bc6a5ab2
children 7815919e2af8
line wrap: on
line diff
--- a/setup.py	Wed Feb 21 02:19:44 2001 +0000
+++ b/setup.py	Wed Feb 21 02:38:24 2001 +0000
@@ -362,9 +362,16 @@
             if platform not in ['cygwin']:
                 exts.append( Extension('resource', ['resource.c']) )
 
+            # Generic dynamic loading module
+            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')):
-                exts.append( Extension('nis', ['nismodule.c'],
-                                       libraries = ['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.