log : changed semantic for start / join (now it's explicit)

This commit is contained in:
alalazo 2016-07-13 22:51:12 +02:00
parent 90b131260b
commit 9d66b85492

View File

@ -1140,10 +1140,12 @@ def build_process():
self.env_path = env_path self.env_path = env_path
dump_environment(env_path) dump_environment(env_path)
log_redirection = log_output(log_path, verbose, sys.stdout.isatty(), True) log_redirection = log_output(log_path, verbose, sys.stdout.isatty(), True)
log_redirection.acquire()
for phase_name, phase in zip(self.phases, self._InstallPhase_phases): for phase_name, phase in zip(self.phases, self._InstallPhase_phases):
tty.msg('Executing phase : \'{0}\''.format(phase_name)) tty.msg('Executing phase : \'{0}\''.format(phase_name))
with log_redirection: with log_redirection:
getattr(self, phase)(self.spec, self.prefix) getattr(self, phase)(self.spec, self.prefix)
log_redirection.release()
self.log() self.log()
# Run post install hooks before build stage is removed. # Run post install hooks before build stage is removed.
spack.hooks.post_install(self) spack.hooks.post_install(self)