Colorize "Installing pkg_name" (#5950)
Now one can quickly visually see in the terminal which packages are installed and where each package begins and ends in the log.
This commit is contained in:
parent
ffb4251666
commit
aa750f12de
@ -66,6 +66,7 @@
|
||||
from llnl.util.lang import memoized
|
||||
from llnl.util.link_tree import LinkTree
|
||||
from llnl.util.tty.log import log_output
|
||||
from llnl.util.tty.color import colorize
|
||||
from spack import directory_layout
|
||||
from spack.util.executable import which
|
||||
from spack.stage import Stage, ResourceStage, StageComposite
|
||||
@ -1337,7 +1338,7 @@ def do_install(self,
|
||||
dirty=dirty,
|
||||
**kwargs)
|
||||
|
||||
tty.msg('Installing %s' % self.name)
|
||||
tty.msg(colorize('@*{Installing} @*g{%s}' % self.name))
|
||||
|
||||
# Set run_tests flag before starting build.
|
||||
self.run_tests = spack.package_testing.check(self.name)
|
||||
|
Loading…
Reference in New Issue
Block a user