diff options
author | Jesse Noller <jnoller@gmail.com> | 2009-01-23 14:09:08 +0000 |
---|---|---|
committer | Jesse Noller <jnoller@gmail.com> | 2009-01-23 14:09:08 +0000 |
commit | 6fd47e2ce18fd71b2a69fee74fee61a6d103937d (patch) | |
tree | 1718c14b5b51fe7654cae820bf18fb35497bd5c6 /setup.py | |
parent | 21cbf5f896fa4c968b46f05a47c0d59ae6e75938 (diff) | |
download | cpython-git-6fd47e2ce18fd71b2a69fee74fee61a6d103937d.tar.gz |
merge 68874 to py3kwq!
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 |