Flush output more aggressively. This makes things look better if
the setup script is running from inside Vim.
diff --git a/Lib/distutils/cmd.py b/Lib/distutils/cmd.py
index ce44829..85a7f46 100644
--- a/Lib/distutils/cmd.py
+++ b/Lib/distutils/cmd.py
@@ -188,6 +188,7 @@
"""
if self.verbose >= level:
print msg
+ sys.stdout.flush()
def debug_print (self, msg):
"""Print 'msg' to stdout if the global DEBUG (taken from the
@@ -196,6 +197,7 @@
from distutils.core import DEBUG
if DEBUG:
print msg
+ sys.stdout.flush()