mirror of
https://github.com/python/cpython.git
synced 2025-10-16 19:57:59 +00:00
Merged revisions 70908,70939,71009,71022,71036 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r70908 | jesse.noller | 2009-03-31 17:20:35 -0500 (Tue, 31 Mar 2009) | 1 line Issue 5619: Pass MS CRT debug flags into subprocesses ........ r70939 | jesse.noller | 2009-03-31 22:45:50 -0500 (Tue, 31 Mar 2009) | 1 line Fix multiprocessing.event to match the new threading.Event API ........ r71009 | jesse.noller | 2009-04-01 19:03:28 -0500 (Wed, 01 Apr 2009) | 1 line issue5545: Switch to Autoconf for multiprocessing; special thanks to Martin Lowis for help ........ r71022 | jesse.noller | 2009-04-01 21:32:55 -0500 (Wed, 01 Apr 2009) | 1 line Issue 3110: Additional protection for SEM_VALUE_MAX on platforms, thanks to Martin Loewis ........ r71036 | jesse.noller | 2009-04-01 23:22:09 -0500 (Wed, 01 Apr 2009) | 1 line Issue 3551: Raise ValueError if the size causes ERROR_NO_SYSTEM_RESOURCES ........
This commit is contained in:
parent
1cdd83c2ab
commit
965ce87991
12 changed files with 198 additions and 61 deletions
42
setup.py
42
setup.py
|
@ -988,56 +988,29 @@ class PyBuildExt(build_ext):
|
|||
libraries = ['ws2_32']
|
||||
|
||||
elif platform == 'darwin': # Mac OSX
|
||||
macros = dict(
|
||||
HAVE_SEM_OPEN=1,
|
||||
HAVE_SEM_TIMEDWAIT=0,
|
||||
HAVE_FD_TRANSFER=1,
|
||||
HAVE_BROKEN_SEM_GETVALUE=1
|
||||
)
|
||||
macros = dict()
|
||||
libraries = []
|
||||
|
||||
elif platform == 'cygwin': # Cygwin
|
||||
macros = dict(
|
||||
HAVE_SEM_OPEN=1,
|
||||
HAVE_SEM_TIMEDWAIT=1,
|
||||
HAVE_FD_TRANSFER=0,
|
||||
HAVE_BROKEN_SEM_UNLINK=1
|
||||
)
|
||||
macros = dict()
|
||||
libraries = []
|
||||
|
||||
elif platform in ('freebsd4', 'freebsd5', 'freebsd6', 'freebsd7', 'freebsd8'):
|
||||
# FreeBSD's P1003.1b semaphore support is very experimental
|
||||
# and has many known problems. (as of June 2008)
|
||||
macros = dict( # FreeBSD
|
||||
HAVE_SEM_OPEN=0,
|
||||
HAVE_SEM_TIMEDWAIT=0,
|
||||
HAVE_FD_TRANSFER=1,
|
||||
)
|
||||
macros = dict()
|
||||
libraries = []
|
||||
|
||||
elif platform.startswith('openbsd'):
|
||||
macros = dict( # OpenBSD
|
||||
HAVE_SEM_OPEN=0, # Not implemented
|
||||
HAVE_SEM_TIMEDWAIT=0,
|
||||
HAVE_FD_TRANSFER=1,
|
||||
)
|
||||
macros = dict()
|
||||
libraries = []
|
||||
|
||||
elif platform.startswith('netbsd'):
|
||||
macros = dict( # at least NetBSD 5
|
||||
HAVE_SEM_OPEN=1,
|
||||
HAVE_SEM_TIMEDWAIT=0,
|
||||
HAVE_FD_TRANSFER=1,
|
||||
HAVE_BROKEN_SEM_GETVALUE=1
|
||||
)
|
||||
macros = dict()
|
||||
libraries = []
|
||||
|
||||
else: # Linux and other unices
|
||||
macros = dict(
|
||||
HAVE_SEM_OPEN=1,
|
||||
HAVE_SEM_TIMEDWAIT=1,
|
||||
HAVE_FD_TRANSFER=1
|
||||
)
|
||||
macros = dict()
|
||||
libraries = ['rt']
|
||||
|
||||
if platform == 'win32':
|
||||
|
@ -1052,8 +1025,7 @@ class PyBuildExt(build_ext):
|
|||
multiprocessing_srcs = [ '_multiprocessing/multiprocessing.c',
|
||||
'_multiprocessing/socket_connection.c'
|
||||
]
|
||||
|
||||
if macros.get('HAVE_SEM_OPEN', False):
|
||||
if sysconfig.get_config_var('HAVE_SEM_OPEN'):
|
||||
multiprocessing_srcs.append('_multiprocessing/semaphore.c')
|
||||
|
||||
if sysconfig.get_config_var('WITH_THREAD'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue