Skip to content

Commit 33aa9bc

Browse files
committed
only build the nis module when the headers are found #7589
1 parent 268e8a0 commit 33aa9bc

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
@@ -83,6 +83,9 @@ C-API
8383
Build
8484
-----
8585

86+
- Issue #7589: Only build the nis module when the correct header files are
87+
found.
88+
8689
- Switch to OpenSSL 0.9.8l on Windows.
8790

8891
- Issue #7541: when using ``python-config`` with a framework install the compiler might

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1088,7 +1088,7 @@ class db_found(Exception): pass
10881088
missing.append('resource')
10891089

10901090
# Sun yellow pages. Some systems have the functions in libc.
1091-
if platform not in ['cygwin', 'atheos', 'qnx6']:
1091+
if platform not in ['cygwin', 'atheos', 'qnx6'] and find_file('rpcsvc/yp_prot.h', inc_dirs, []) is not None:
10921092
if (self.compiler_obj.find_library_file(lib_dirs, 'nsl')):
10931093
libs = ['nsl']
10941094
else:

0 commit comments

Comments
 (0)