From aeb34fe0046522bad68205129b7a5a0f6a56f0ab Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Tue, 19 Mar 2013 10:29:22 -0700 Subject: [PATCH] Flush at the end of cythonize(). --- Cython/Build/Dependencies.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Cython/Build/Dependencies.py b/Cython/Build/Dependencies.py index b67a6aa..2c84b60 100644 --- a/Cython/Build/Dependencies.py +++ b/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 -- 2.7.4