Commit 0054eb29 authored by Clive Cox's avatar Clive Cox Committed by Sang Ik Lee

Changed python setup multiprocessing usage

parent 93738a82
......@@ -106,7 +106,8 @@ def parallelCCompile(
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
# convert to list, imap is evaluated on-demand
list(multiprocessing.pool.ThreadPool().imap(_single_compile, objects))
pool = multiprocessing.pool.ThreadPool()
list(pool.imap(_single_compile, objects))
return objects
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment