Debian Codegraph @

docs/installation_guide.rst

raw
1 Installation guide
2 ==================
3
4 Dependencies
5 ------------
6
7 The following software and modules are required to run dot2tex:
8
9 - Python_ 2.7 or 3.x.
10 - pyparsing_. Version 1.4.8 or later is recommended.
11 - Graphviz_. A recent version is required.
12 - preview_. A LaTeX package for extracting parts of a document. A free-standing part of the `preview-latex`_/`AUCTeX`_ bundle.
13 - `PGF/TikZ`_ version 2.0 or later.
14
15 Users have reported problems using dot2tex with old versions of pyparsing and Graphviz.
16
17 A natural companion to dot2tex is `the dot2texi LaTeX package <dot2texi_>`_ for embedding graphs directly in your LaTeX source code.
18
19
20 Using pip or easy_install
21 -------------------------
22
23 The easiest way to install dot2tex is to use `pip`_ (recommended) or `easy_install`_::
24
25 $ pip install dot2tex
26
27 or `easy_install`_::
28
29 $ easy_install dot2tex
30
31 If you are on Linux or Mac OS X you may have to call `pip`_ or `easy_install`_ using ``sudo``::
32
33 $ sudo pip install dot2tex
34
35 The commands will locate dot2tex and download it automatically. Note that documentation and examples are not installed by default. `Pip` and `easy_install`_ will also create a wrapper script or EXE file for you and install dependencies if necessary.
36
37
38 .. _download: https://pypi.python.org/pypi/dot2tex#downloads
39
40 Binary packages
41 ---------------
42
43 Binary packages are available for Debian_ and OpenSUSE_.
44
45
46 From source
47 -----------
48
49 Download a zip or a tarball from the download_ page. Unpack the file to a directory and run ``python`` on the ``setup.py`` file::
50
51 $ python setup.py install
52
53 This will create a dot2tex module in your Python modue directory and a wrapper script in your ``SCRIPTS`` directory. Note that a few warnings will be displayed. You can safely ignore them. The warnings are shown because there is some extra information in the ``setup.py`` file that distutils does not understand.
54
55
56 Development version
57 -------------------
58
59 The development version of ``dot2tex`` is `hosted on GitHub <https://github.com/kjellmf/dot2tex>`_. To get the code you can use the following command::
60
61 git clone https://github.com/kjellmf/dot2tex.git
62
63 .. _Debian: http://packages.qa.debian.org/d/dot2tex.html
64 .. _OpenSUSE: https://build.opensuse.org/package/show/home:jimfunk/dot2tex
65
66
67 .. include:: common.inc