Merge pull request #84 from YannickJadoul/unbuffered-output

Applying unbuffered output to all platforms instead of only Windows
This commit is contained in:
Yannick Jadoul
2018-09-02 22:49:26 +02:00
committed by GitHub
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):
'''
@@ -142,6 +142,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):