mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-11-13 12:09:35 +03:00
Merge branch 'better-build-output-for-pipes' of https://github.com/Luflosi/kitty into master
This commit is contained in:
commit
a5918b50f8
5
setup.py
5
setup.py
@ -479,14 +479,17 @@ def parallel_run(items: List[Command]) -> None:
|
||||
compile_cmd.on_success()
|
||||
|
||||
printed = False
|
||||
isatty = sys.stdout.isatty()
|
||||
while items and failed is None:
|
||||
while len(workers) < num_workers and items:
|
||||
compile_cmd = items.pop()
|
||||
num += 1
|
||||
if verbose:
|
||||
print(' '.join(compile_cmd.cmd))
|
||||
else:
|
||||
elif isatty:
|
||||
print('\r\x1b[K[{}/{}] {}'.format(num, total, compile_cmd.desc), end='')
|
||||
else:
|
||||
print('[{}/{}] {}'.format(num, total, compile_cmd.desc), flush=True)
|
||||
printed = True
|
||||
w = subprocess.Popen(compile_cmd.cmd, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT)
|
||||
workers[w.pid] = compile_cmd, w
|
||||
|
Loading…
Reference in New Issue
Block a user