Source code for pimlico.core.visualize.deps

from pimlico.core.dependencies.base import SystemCommandDependency
from pimlico.core.dependencies.python import PythonPackageOnPip


[docs]class GraphvizDependency(SystemCommandDependency): def __init__(self, **kwargs): super(GraphvizDependency, self).__init__("Graphviz", "dot -V", **kwargs)
[docs] def installation_instructions(self): return """\ Install Graphviz on your system using a package manager, or by following the instructions to compile from source at: http://www.graphviz.org/Download.php For example, on Ubuntu you can run: sudo apt-get install graphviz """
pygraphviz_dependency = PythonPackageOnPip("pygraphviz", name="PyGraphviz", dependencies=[GraphvizDependency()])