Permalink
Browse files

Flush at the end of cythonize().

  • Loading branch information...
1 parent c58a24b commit aeb34fe0046522bad68205129b7a5a0f6a56f0ab @robertwb robertwb committed Mar 19, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 Cython/Build/Dependencies.py
@@ -693,6 +693,9 @@ def cythonize(module_list, exclude=[], nthreads=0, aliases=None, quiet=False, fo
module_list.remove(module)
if hasattr(options, 'cache'):
cleanup_cache(options.cache, getattr(options, 'cache_size', 1024 * 1024 * 100))
+ # cythonize() is often followed by the (non-Python-buffered)
+ # compiler output, flush now to avoid interleaving output.
+ sys.stdout.flush()
return module_list
# TODO: Share context? Issue: pyx processing leaks into pxd module

0 comments on commit aeb34fe

Please sign in to comment.