summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-11-20 19:30:22 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-11-20 19:30:22 (GMT)
commitc4920e86ef7511b4e858028e870b1811437a71d0 (patch)
tree5cf1eca3d52fa0b815159c483e9108115dc05fcb /setup.py
parentab44226198f844d2854d13395c5fd303fb9e3570 (diff)
downloadcpython-c4920e86ef7511b4e858028e870b1811437a71d0.zip
cpython-c4920e86ef7511b4e858028e870b1811437a71d0.tar.gz
cpython-c4920e86ef7511b4e858028e870b1811437a71d0.tar.bz2
Issue #7272: Add configure test to detect whether sem_open works
properly, and use this to skip test_multiprocessing on platforms where sem_open raises a signal. This should fix some FreeBSD buildbot failures for test_multiprocessing.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 0a4dc52..75ff11f 100644
--- a/setup.py
+++ b/setup.py
@@ -1315,7 +1315,8 @@ class PyBuildExt(build_ext):
multiprocessing_srcs = [ '_multiprocessing/multiprocessing.c',
'_multiprocessing/socket_connection.c'
]
- if sysconfig.get_config_var('HAVE_SEM_OPEN'):
+ if (sysconfig.get_config_var('HAVE_SEM_OPEN') and not
+ sysconfig.get_config_var('HAVE_BROKEN_POSIX_SEMAPHORES')):
multiprocessing_srcs.append('_multiprocessing/semaphore.c')
if sysconfig.get_config_var('WITH_THREAD'):