2015-12-18 23:28:58 +00:00
|
|
|
Generating Dependency Graph
|
|
|
|
============================
|
|
|
|
|
|
|
|
Usage:
|
|
|
|
|
2016-05-13 18:49:55 +00:00
|
|
|
./leandeps.py [options] dir/file
|
|
|
|
|
|
|
|
For example:
|
|
|
|
|
|
|
|
./leandeps.py ../../library/
|
2015-12-18 23:28:58 +00:00
|
|
|
|
|
|
|
If argument is a directory, all source files below that directory will be included in the graph.
|
|
|
|
|
|
|
|
- `-h`/`--help` : prints this message
|
|
|
|
- `-o <file>`/`--output <file>` : saves the DOT output in the specified file
|
|
|
|
|
|
|
|
If no output file is specified, `deps.gv` and `deps.gv.dot` is written to.
|
|
|
|
|
2016-05-13 18:49:55 +00:00
|
|
|
You need [graphviz][graphviz] and the [graphviz python library][python-graphviz]. If you already have [pip][pip], you can do:
|
2015-12-18 23:28:58 +00:00
|
|
|
|
2016-05-13 18:49:55 +00:00
|
|
|
sudo apt-get install graphviz
|
|
|
|
sudo pip install graphviz
|
2015-12-18 23:28:58 +00:00
|
|
|
|
2016-05-13 18:49:55 +00:00
|
|
|
The resulting `deps.gv.dot` file can be run through tred and [dot][graphviz] from graphviz to produce,
|
2015-12-18 23:28:58 +00:00
|
|
|
e.g., an svg file. For example:
|
|
|
|
|
|
|
|
tred deps.gv.dot > treddeps.dot
|
|
|
|
dot -Tsvg -O treddeps.dot
|
|
|
|
|
|
|
|
[python-graphviz]: https://pypi.python.org/pypi/graphviz
|
|
|
|
[graphviz]: http://www.graphviz.org/
|
|
|
|
[pip]: https://pip.readthedocs.org/en/stable/installing/#install-pip
|