Skip to content

Commit c48804d

Browse files
authored
manually specify multiprocessing use fork in setup.py (#754)
1 parent 2ce28c1 commit c48804d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
nthreads = mp.cpu_count()
4646
if os.name == "nt":
4747
nthreads = 0
48+
else:
49+
mp.set_start_method("fork", force=True)
4850

4951
setup(
5052
packages=packages,

0 commit comments

Comments
 (0)