Applying unbuffered output to all platforms instead of only Windows

This commit is contained in:
Yannick Jadoul
2018-08-02 12:04:39 +02:00
parent 391c95d355
commit 57454e75b0
2 changed files with 5 additions and 6 deletions
+4 -1
View File
@@ -4,7 +4,7 @@ import argparse, os, subprocess, sys, textwrap
import cibuildwheel
import cibuildwheel.linux, cibuildwheel.windows, cibuildwheel.macos
from cibuildwheel.environment import parse_environment, EnvironmentParseError
from cibuildwheel.util import BuildSkipper
from cibuildwheel.util import BuildSkipper, Unbuffered
def get_option_from_environment(option_name, platform=None, default=None):
'''
@@ -141,6 +141,9 @@ def main():
elif platform == 'windows':
pass
# Python is buffering by default when running on the CI platforms, giving problems interleaving subprocess call output with unflushed calls to 'print'
sys.stdout = Unbuffered(sys.stdout)
print_preamble(platform, build_options)
if not os.path.exists(output_dir):