mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
mp is a little twitchy on windows
This commit is contained in:
parent
97b5c72630
commit
cd44e1427a
|
@ -3,7 +3,7 @@
|
|||
|
||||
from multiprocessing import Pool, cpu_count
|
||||
from distutils.ccompiler import CCompiler
|
||||
import os
|
||||
import os, sys
|
||||
|
||||
try:
|
||||
MAX_PROCS = int(os.environ.get('MAX_CONCURRENCY', cpu_count()))
|
||||
|
@ -50,7 +50,7 @@ def _mp_compile(self, sources, output_dir=None, macros=None,
|
|||
return objects
|
||||
|
||||
# explicitly don't enable if environment says 1 processor
|
||||
if MAX_PROCS != 1:
|
||||
if MAX_PROCS != 1 and not sys.platform.startswith('win'):
|
||||
try:
|
||||
# bug, only enable if we can make a Pool. see issue #790 and
|
||||
# http://stackoverflow.com/questions/6033599/oserror-38-errno-38-with-multiprocessing
|
||||
|
|
Loading…
Reference in New Issue
Block a user