Esempio n. 1
0
    def run(self, max_running=1, dry_run=False, progress_ui="verbose"):
        assert max_running >= 1, max_running
        _update_nprocesses(self._pool, max_running)

        try:
            nodegraph = NodeGraph(self._nodes)
        except NodeGraphError, error:
            self._logger.error(error)
            return False
Esempio n. 2
0
 def to_dot(self, destination):
     """Writes a simlpe dot file to the specified destination, representing
     the full dependency tree, after MetaNodes have been removed. Nodes are
     named by their class.
     """
     try:
         nodegraph = NodeGraph(self._nodes)
     except NodeGraphError, error:
         self._logger.error(error)
         return False
Esempio n. 3
0
    def list_output_files(self):
        output_files = {}
        nodegraph = NodeGraph(self._nodes)

        def collect_output_files(node):
            state = nodegraph.get_node_state(node)
            for filename in node.output_files:
                output_files[os.path.abspath(filename)] = state
            return True

        self.walk_nodes(collect_output_files)

        return output_files
Esempio n. 4
0
 def run(self, max_running=6, dry_run=False, collapse=True, verbose=True):
     try:
         nodegraph = NodeGraph(self._nodes)
     except NodeGraphError, error:
         ui.print_err(error, file=sys.stderr)
         return False