We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e18f93 commit 7194844Copy full SHA for 7194844
mesonpy/__init__.py
@@ -733,7 +733,10 @@ def __init__(
733
734
def _run(self, cmd: Sequence[str]) -> None:
735
"""Invoke a subprocess."""
736
- print('{cyan}{bold}+ {}{reset}'.format(' '.join(cmd), **_STYLES))
+ # Flush the line to ensure that the log line with the executed
737
+ # command line appears before the command output. Without it,
738
+ # the lines appear in the wrong order in pip output.
739
+ print('{cyan}{bold}+ {}{reset}'.format(' '.join(cmd), **_STYLES), flush=True)
740
r = subprocess.run(cmd, env=self._env, cwd=self._build_dir)
741
if r.returncode != 0:
742
raise SystemExit(r.returncode)
0 commit comments