Evaluates file dependencies in pure python.
Make target depend on optional sources.
Return dot graph as string and optionally write to file ‘out’. Stale nodes will be colored red.
You can set the file name ‘format’ for node labels.
Text dump of nodes.
Write hashdb for all nodes.
Get node by name.
Enable hashing for file node.
Return iterator for all stale nodes listed by name (and their dependents). If [] is given, then all stale nodes (and their dependents) will be returned.
Return names of files discovered during graph evaluation.
Return list of lists where paths use names instead of object references.
Set node with name to be phony, so even when file with name is missing, it won’t be considered stale, unless it has a stale child.
Reset all nodes.
Find stale nodes based on modtime or hash.
allpaths: If true, also find all paths from roots to leaf nodes.
Force node with name to be stale (force=1) or uptodate (force=0).
Return simple tree string of all nodes.
Loads, queries, computes and exports “file,hash” per line.
Write out db to text file with file names and hashes.
Get hash for given filename in db.
Loads db text file.
Return md5 checksum for file named ‘fn’ or None if error.
Put hash for file into table.
Compute hash for file and update db entry.
Uses a sqlite database. Can be used inmemory after loading file.
Write out db to file with file names and hashes.
Get hash for given filename in db.
Loads sqlite db file if it exists and optionally into memory. If none exists, a new db is created.
Put hash for file into table.
Stores append index and O(1) lookup of index using key.
Add unique item, store its index and return index.
Return index for item. None if not in container.
Iterate over dagger results and get groups of items mutually exclusive in dependency graph. Use for guiding serial or parallel processing.
Get next n independent item names. n=1 by default.
Remove item from candidate list.
Hybrid linked-list/dict container for O(1) removal of append-sorted data keys. Benchmark shows that it is much faster than plain list for large arrays (see bench/bench_ldict.py).
Returns ldict_node for data item.
Node for ldict that wraps data and holds double-links.
File node for dependecy graph.
Add one or more nodes as children.
Make set of nodes that are in paths lists to allow quick lookups.
Return string with basic node info.
@return formatted string. @param pat: Supported format specifiers: %a: absolute name %d: date %b: base name %r: root name (no directory prefix or extension suffix) %m: modified time None: as-is name
Reset staleness, hash and time.
Get modified time for file from system and optionally compute hash.
Convert time (from os.path.getmtime) to date and time strings.