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

Skip to content

Commit e57d676

Browse files
committed
Merged revisions 77128 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r77128 | benjamin.peterson | 2009-12-29 20:58:50 -0600 (Tue, 29 Dec 2009) | 1 line only build the nis module when the headers are found #7589 ........
1 parent ca5f1a7 commit e57d676

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,9 @@ Extension Modules
504504
Build
505505
-----
506506

507+
- Issue #7589: Only build the nis module when the correct header files are
508+
found.
509+
507510
- Switch to OpenSSL 0.9.8l on Windows.
508511

509512
- Issue #5792: Extend the short float repr support to x86 systems using

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ class db_found(Exception): pass
972972
exts.append( Extension('resource', ['resource.c']) )
973973

974974
# Sun yellow pages. Some systems have the functions in libc.
975-
if platform not in ['cygwin', 'qnx6']:
975+
if platform not in ['cygwin', 'qnx6'] and find_file('rpcsvc/yp_prot.h', inc_dirs, []) is not None:
976976
if (self.compiler_obj.find_library_file(lib_dirs, 'nsl')):
977977
libs = ['nsl']
978978
else:

0 commit comments

Comments
 (0)