def run(self): self.storage.clear() contexts = list(self.iter_contexts()) for context in contexts: if context.needs_build: key = context.is_new and 'A' or 'U' context.run() print key, context.source_filename before_build_finished.send(self)