Commit cc369a19 authored by Stefan Behnel's avatar Stefan Behnel

prevent timeout errors on long multi threaded cythonize() builds

parent 4734e2d3
......@@ -812,7 +812,10 @@ def cythonize(module_list, exclude=[], nthreads=0, aliases=None, quiet=False, fo
result = pool.map_async(cythonize_one_helper, to_compile, chunksize=1)
pool.close()
while not result.ready():
result.get(120) # seconds
try:
result.get(99999) # seconds
except multiprocessing.TimeoutError:
pass
except KeyboardInterrupt:
pool.terminate()
raise
......
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