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
+1 -5
View File
@@ -7,14 +7,10 @@ except ImportError:
from collections import namedtuple
from glob import glob
from .util import prepare_command, get_build_verbosity_extra_flags, Unbuffered
from .util import prepare_command, get_build_verbosity_extra_flags
def build(project_dir, package_name, output_dir, test_command, test_requires, before_build, build_verbosity, skip, environment):
# Python under AppVeyor/Windows seems to be buffering by default, giving problems interleaving subprocess call output with unflushed calls to 'print'
sys.stdout.flush()
sys.stdout = Unbuffered(sys.stdout)
# run_with_env is a cmd file that sets the right environment variables to
run_with_env = os.path.join(tempfile.gettempdir(), 'appveyor_run_with_env.cmd')
if not os.path.exists(run_with_env):