diff options
-rw-r--r-- | Misc/NEWS | 3 | ||||
-rw-r--r-- | setup.py | 5 |
2 files changed, 6 insertions, 2 deletions
@@ -403,6 +403,9 @@ Extension Modules Build ----- +- Issue #7589: Only build the nis module when the correct header files are + found. + - Issue 4601: 'make install' did not set the appropriate permissions on directories. @@ -979,8 +979,9 @@ class PyBuildExt(build_ext): missing.append('resource') # Sun yellow pages. Some systems have the functions in libc. - if platform not in ['cygwin', 'atheos', 'qnx6']: - if (self.compiler.find_library_file(lib_dirs, 'nsl')): + if (platform not in ['cygwin', 'qnx6'] and + find_file('rpcsvc/yp_prot.h', inc_dirs, []) is not None): + if (self.compiler_obj.find_library_file(lib_dirs, 'nsl')): libs = ['nsl'] else: libs = [] |