def filemap(): """Lists the transitive dependencies of targets under the current build root.""" with EngineInitializer.open_legacy_graph() as (graph, addresses, _): for address in addresses: target = graph.get_target(address) for source in target.sources_relative_to_buildroot(): print('{} {}'.format(source, target.address.spec))
def list(): """Lists the transitive dependencies of targets under the current build root.""" with EngineInitializer.open_legacy_graph() as (graph, addresses, _): for address in addresses: print(address)
def fsnodes(): """Prints out all of the FilesystemNodes in the Scheduler for debugging purposes.""" with EngineInitializer.open_legacy_graph() as (_, _, scheduler): for node, _ in scheduler.product_graph.completed_nodes(): if type(node) is FilesystemNode: print(node)
def dependencies(): """Lists the transitive dependencies of targets under the current build root.""" with EngineInitializer.open_legacy_graph() as (graph, addresses, _): for target in graph.closure([graph.get_target(a) for a in addresses]): print(target.address.spec)
def setup_legacy_product_graph(self, *specs): kwargs = self._make_setup_args(*specs) with EngineInitializer.open_legacy_graph(**kwargs) as (_, _, scheduler): return scheduler.product_graph
def open_scheduler(self, *specs): kwargs = self._make_setup_args(*specs) with EngineInitializer.open_legacy_graph(**kwargs) as triple: yield triple