From: Robert Bradshaw Date: Tue, 19 Mar 2013 17:29:22 +0000 (-0700) Subject: Flush at the end of cythonize(). X-Git-Tag: 0.19b1~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aeb34fe0046522bad68205129b7a5a0f6a56f0ab;p=platform%2Fupstream%2Fpython-cython.git Flush at the end of cythonize(). --- 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