Issue 3807: multiprocessing fails to compile under --without-threads

This commit is contained in:
Jesse Noller 2009-01-23 14:04:41 +00:00
parent 403c6632e6
commit f6da8d1495
2 changed files with 11 additions and 3 deletions

View File

@ -145,6 +145,10 @@ Core and Builtins
Library 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, - 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 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 file size rather than 0). This is consistent with the behaviour of the

View File

@ -1315,9 +1315,13 @@ class PyBuildExt(build_ext):
if macros.get('HAVE_SEM_OPEN', False): if macros.get('HAVE_SEM_OPEN', False):
multiprocessing_srcs.append('_multiprocessing/semaphore.c') multiprocessing_srcs.append('_multiprocessing/semaphore.c')
if sysconfig.get_config_var('WITH_THREAD'):
exts.append ( Extension('_multiprocessing', multiprocessing_srcs, exts.append ( Extension('_multiprocessing', multiprocessing_srcs,
define_macros=macros.items(), define_macros=macros.items(),
include_dirs=["Modules/_multiprocessing"])) include_dirs=["Modules/_multiprocessing"]))
else:
missing.append('_multiprocessing')
# End multiprocessing # End multiprocessing