summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorJesse Noller <jnoller@gmail.com>2009-01-23 14:04:41 (GMT)
committerJesse Noller <jnoller@gmail.com>2009-01-23 14:04:41 (GMT)
commitf6da8d149525f19378b6f27a597fb2d022f84895 (patch)
tree54fa05cb0d71b44bf530d3f91e9b392cb6ba73bf /setup.py
parent403c6632e6c3bc45309b2b234dc6e2267742b0d5 (diff)
downloadcpython-f6da8d149525f19378b6f27a597fb2d022f84895.zip
cpython-f6da8d149525f19378b6f27a597fb2d022f84895.tar.gz
cpython-f6da8d149525f19378b6f27a597fb2d022f84895.tar.bz2
Issue 3807: multiprocessing fails to compile under --without-threads
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/setup.py b/setup.py
index 0948e67..1aa14d1 100644
--- a/setup.py
+++ b/setup.py
@@ -1315,9 +1315,13 @@ class PyBuildExt(build_ext):
if macros.get('HAVE_SEM_OPEN', False):
multiprocessing_srcs.append('_multiprocessing/semaphore.c')
- exts.append ( Extension('_multiprocessing', multiprocessing_srcs,
- define_macros=macros.items(),
- include_dirs=["Modules/_multiprocessing"]))
+ if sysconfig.get_config_var('WITH_THREAD'):
+ exts.append ( Extension('_multiprocessing', multiprocessing_srcs,
+ define_macros=macros.items(),
+ include_dirs=["Modules/_multiprocessing"]))
+ else:
+ missing.append('_multiprocessing')
+
# End multiprocessing