mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +00:00
spwdmodule.c should only be built when either HAVE_GETSPNAM or HAVE_GETSPENT is
defined.
This commit is contained in:
parent
f0db38dbf8
commit
46d9623875
2 changed files with 7 additions and 2 deletions
6
setup.py
6
setup.py
|
@ -384,12 +384,14 @@ class PyBuildExt(build_ext):
|
|||
# fcntl(2) and ioctl(2)
|
||||
exts.append( Extension('fcntl', ['fcntlmodule.c']) )
|
||||
if platform not in ['mac']:
|
||||
# pwd(3)
|
||||
# pwd(3)
|
||||
exts.append( Extension('pwd', ['pwdmodule.c']) )
|
||||
# grp(3)
|
||||
exts.append( Extension('grp', ['grpmodule.c']) )
|
||||
# spwd, shadow passwords
|
||||
exts.append( Extension('spwd', ['spwdmodule.c']) )
|
||||
if (sysconfig.get_config_var('HAVE_GETSPNAM') or
|
||||
sysconfig.get_config_var('HAVE_GETSPENT')):
|
||||
exts.append( Extension('spwd', ['spwdmodule.c']) )
|
||||
# select(2); not on ancient System V
|
||||
exts.append( Extension('select', ['selectmodule.c']) )
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue