Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cf393f3

Browse files
committed
Patch #103544: always compile the dl and nis modules on Unix; let's see
where they break.
1 parent c503219 commit cf393f3

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

setup.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,9 +362,16 @@ def detect_modules(self):
362362
if platform not in ['cygwin']:
363363
exts.append( Extension('resource', ['resource.c']) )
364364

365+
# Generic dynamic loading module
366+
exts.append( Extension('dl', ['dlmodule.c']) )
367+
368+
# Sun yellow pages. Some systems have the functions in libc.
365369
if (self.compiler.find_library_file(lib_dirs, 'nsl')):
366-
exts.append( Extension('nis', ['nismodule.c'],
367-
libraries = ['nsl']) )
370+
libs = ['nsl']
371+
else:
372+
libs = []
373+
exts.append( Extension('nis', ['nismodule.c'],
374+
libraries = libs) )
368375

369376
# Curses support, requring the System V version of curses, often
370377
# provided by the ncurses library.

0 commit comments

Comments
 (0)