summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Misc/NEWS3
-rw-r--r--setup.py5
2 files changed, 6 insertions, 2 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 6bcae0a..c3bbb64 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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.
diff --git a/setup.py b/setup.py
index 8670766..39f8840 100644
--- a/setup.py
+++ b/setup.py
@@ -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 = []