mirror of
https://github.com/python/cpython.git
synced 2025-09-16 13:47:31 +00:00
only build the nis module when the headers are found #7589
This commit is contained in:
parent
3c8a24e6d9
commit
500ce23384
2 changed files with 4 additions and 1 deletions
2
setup.py
2
setup.py
|
@ -1088,7 +1088,7 @@ 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 platform not in ['cygwin', 'atheos', '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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue