Generate build order graph from directory of debian packaging repositories
Project description
controlgraph
controlgraph is a directed graph which can be traversed to enable parallelized Debian package builds.
From the available directories with valid Debian packaging, a graph with directories (representing source packages) for nodes and build dependencies for edges is produced. This can traversed with a depth-first search to build in dependency order.
controlgraph
is a program which returns the controlgraph for a directory to build, in linear or dot format.
Installation
pip3 install controlgraph
Usage
With one or more directories present, run controlgraph
.
$ for r in opx-nas-acl opx-nas-daemon opx-alarm opx-logging opx-common-utils; do
git clone "https://github.com/open-switch/$r"
done
$ controlgraph
opx-alarm opx-logging opx-common-utils opx-nas-acl opx-nas-daemon
$ controlgraph --graph
strict digraph {
"opx-alarm";
"opx-nas-daemon";
"opx-common-utils";
"opx-logging";
"opx-nas-acl";
"opx-nas-daemon" -> "opx-common-utils";
"opx-nas-daemon" -> "opx-logging";
"opx-nas-daemon" -> "opx-nas-acl";
"opx-common-utils" -> "opx-logging";
"opx-nas-acl" -> "opx-common-utils";
"opx-nas-acl" -> "opx-logging";
}
Pair it with dbp
for easy full builds.
$ dbp build $(controlgraph)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
controlgraph-0.6.0.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for controlgraph-0.6.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5da18387f87f5104b05c6355b3f6435adae20b3f75f5bde02847eb06bd63805f |
|
MD5 | 331946c55ce06fa5fd92819cfc60217e |
|
BLAKE2b-256 | 16fec875c2798c36faecef47595a109a41f830a281bcd90d3ccd1efaf161588d |