summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Noller <jnoller@gmail.com>2009-01-23 14:09:08 (GMT)
committerJesse Noller <jnoller@gmail.com>2009-01-23 14:09:08 (GMT)
commit6fd47e2ce18fd71b2a69fee74fee61a6d103937d (patch)
tree1718c14b5b51fe7654cae820bf18fb35497bd5c6
parent21cbf5f896fa4c968b46f05a47c0d59ae6e75938 (diff)
downloadcpython-6fd47e2ce18fd71b2a69fee74fee61a6d103937d.zip
cpython-6fd47e2ce18fd71b2a69fee74fee61a6d103937d.tar.gz
cpython-6fd47e2ce18fd71b2a69fee74fee61a6d103937d.tar.bz2
merge 68874 to py3kwq!
-rw-r--r--Misc/NEWS4
-rw-r--r--setup.py9
2 files changed, 10 insertions, 3 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 2d18011..cf9e885 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -139,6 +139,10 @@ Core and Builtins
Library
-------
+- Issue #3807: _multiprocessing build fails when configure is passed
+ --without-threads argument. When this occurs, _multiprocessing will
+ be disabled, and not compiled.
+
- Issue #5008: When a file is opened in append mode with the new IO library,
do an explicit seek to the end of file (so that e.g. tell() returns the
file size rather than 0). This is consistent with the behaviour of the
diff --git a/setup.py b/setup.py
index 27d1fe15..174a8b2 100644
--- a/setup.py
+++ b/setup.py
@@ -1063,9 +1063,12 @@ 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=list(macros.items()),
- include_dirs=["Modules/_multiprocessing"]))
+ if sysconfig.get_config_var('WITH_THREAD'):
+ exts.append ( Extension('_multiprocessing', multiprocessing_srcs,
+ define_macros=list(macros.items()),
+ include_dirs=["Modules/_multiprocessing"]))
+ else:
+ missing.append('_multiprocessing')
# End multiprocessing
# Platform-specific libraries