"git@developer.sourcefind.cn:gaoqiong/pybind11.git" did not exist on "f7b5874ca34634ed281b32f8013f5afdde808f50"
Unverified Commit 79178e71 authored by jbarlow83's avatar jbarlow83 Committed by GitHub
Browse files

fix(setup_helpers): try import multiprocessing.synchronize too (#3043)

parent 19d99a87
......@@ -410,7 +410,9 @@ class ParallelCompile(object):
compiler._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
try:
import multiprocessing
# Importing .synchronize checks for platforms that have some multiprocessing
# capabilities but lack semaphores, such as AWS Lambda and Android Termux.
import multiprocessing.synchronize
from multiprocessing.pool import ThreadPool
except ImportError:
threads = 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment