concretizer verbose: show progress in % too (#40654)
This commit is contained in:
parent
a675156c70
commit
96548047f8
1 changed files with 6 additions and 3 deletions
|
@ -1518,11 +1518,14 @@ def _concretize_separately(self, tests=False):
|
|||
tty.msg(msg)
|
||||
|
||||
batch = []
|
||||
for i, concrete, duration in spack.util.parallel.imap_unordered(
|
||||
_concretize_task, args, processes=num_procs, debug=tty.is_debug()
|
||||
for j, (i, concrete, duration) in enumerate(
|
||||
spack.util.parallel.imap_unordered(
|
||||
_concretize_task, args, processes=num_procs, debug=tty.is_debug()
|
||||
)
|
||||
):
|
||||
batch.append((i, concrete))
|
||||
tty.verbose(f"[{duration:7.2f}s] {root_specs[i]}")
|
||||
percentage = (j + 1) / len(args) * 100
|
||||
tty.verbose(f"{duration:6.1f}s [{percentage:3.0f}%] {root_specs[i]}")
|
||||
sys.stdout.flush()
|
||||
|
||||
# Add specs in original order
|
||||
|
|
Loading…
Reference in a new issue