macOS - use spawn for multiprocessing

See bpo-33725. This is the default for 3.8, opt-in for 3.7 and older.
This commit is contained in:
James R. Barlow
2020-04-26 03:49:40 -07:00
parent 27a3b80376
commit 2c07515907
+3
View File
@@ -19,6 +19,7 @@
import logging
import os
import sys
from multiprocessing import set_start_method
from . import __version__
from ._sync import run_pipeline
@@ -66,4 +67,6 @@ def run(args=None):
if __name__ == '__main__':
if sys.platform == 'darwin' and sys.version_info < (3, 8):
set_start_method('spawn') # see python bpo-33725
sys.exit(run())