mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-05 04:50:09 +03:00
_processes isn't in py 2.6
This commit is contained in:
parent
187e26524f
commit
8ad2d53483
|
@ -30,7 +30,9 @@ def _mp_compile(self, sources, output_dir=None, macros=None,
|
|||
cc_args = self._get_cc_args(pp_opts, debug, extra_preargs)
|
||||
|
||||
pool = Pool()
|
||||
try:
|
||||
print ("Building using %d processes" % pool._processes)
|
||||
except: pass
|
||||
arr = [(self, obj, build, cc_args, extra_postargs, pp_opts) for obj in objects]
|
||||
results = pool.map_async(_mp_compile_one,arr)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user