Skip to content

Commit 190cd29

Browse files
committed
setup_helpers: try import multiprocessing.synchronize too
1 parent 4c7697d commit 190cd29

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pybind11/setup_helpers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,9 @@ def _single_compile(obj):
411411

412412
try:
413413
import multiprocessing
414+
import multiprocessing.synchronize # Check for platforms like that have some
415+
# multiprocess capabilities but lack semaphores,
416+
# such as AWS Lambda and Android Termux.
414417
from multiprocessing.pool import ThreadPool
415418
except ImportError:
416419
threads = 1

0 commit comments

Comments
 (0)