| | 1 | = Installation = |
| | 2 | |
| | 3 | ''This applies to pycallgraph v0.5.0. To see other versions go [wiki:documentation here].'' |
| | 4 | |
| | 5 | == Requirements == |
| | 6 | You will need [http://www.graphviz.org/ Graphviz] installed and in your path. To see if it's installed and in your path, the command "dot" should work from the command line. |
| | 7 | |
| | 8 | == Installation == |
| | 9 | Python Call Graph works with Linux, Windows and Mac OS X. There are a few ways of installing it: |
| | 10 | |
| | 11 | === Windows === |
| | 12 | |
| | 13 | * [http://pycallgraph.slowchop.com/files/download/pycallgraph-0.5.0.win32.exe pycallgraph-0.5.0.win32.exe] |
| | 14 | |
| | 15 | === Setuptools === |
| | 16 | |
| | 17 | If you have [http://peak.telecommunity.com/DevCenter/setuptools setuptools] installed, simply run the following: |
| | 18 | {{{ |
| | 19 | easy_install pycallgraph |
| | 20 | }}} |
| | 21 | |
| | 22 | === From Source === |
| | 23 | |
| | 24 | * [http://pycallgraph.slowchop.com/files/download/pycallgraph-0.5.0.tar.gz pycallgraph-0.5.0.tar.gz] |
| | 25 | * [http://pycallgraph.slowchop.com/files/download/pycallgraph-0.5.0.zip pycallgraph-0.5.0.zip] |
| | 26 | |
| | 27 | Extract one of the above, hop into the directory and run: |
| | 28 | {{{ |
| | 29 | python setup.py install |
| | 30 | }}} |
| | 31 | |
| | 32 | === Debian === |
| | 33 | Jan Michael Alonzo is maintaining a Debian package at (currently version 0.3.0): |
| | 34 | * http://packages.debian.org/unstable/python/python-pycallgraph |
| | 35 | |
| | 36 | === FreeBSD === |
| | 37 | Li-Wen Hsu is maintaining a FreeBSD package on !FreshPorts: |
| | 38 | * http://www.freshports.org/devel/py-pycallgraph/ |
| | 39 | |
| | 40 | === OpenSUSE === |
| | 41 | OpenSUSE has a python-pycallgraph package: |
| | 42 | * http://download.opensuse.org/repositories/devel:/languages:/python/openSUSE_Factory/repodata/repoview/python-pycallgraph-0-0.3.0-3.20.html |
| | 43 | |
| | 44 | === Subversion === |
| | 45 | {{{ |
| | 46 | svn co svn://slowchop.com/pycallgraph/trunk/ |
| | 47 | }}} |
| | 48 | |
| | 49 | === Older Releases === |
| | 50 | * [http://pycallgraph.slowchop.com/files/download/ older releases] |
| | 51 | |
| | 52 | == Now What? == |
| | 53 | Your can see if it is installed by running it on the command line: |
| | 54 | {{{ |
| | 55 | pygc |
| | 56 | }}} |
| | 57 | |
| | 58 | You can also try to import it and check the version: |
| | 59 | {{{ |
| | 60 | python |
| | 61 | Python 2.5.2 (r252:60911, Apr 21 2008, 11:12:42) |
| | 62 | [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 |
| | 63 | Type "help", "copyright", "credits" or "license" for more information. |
| | 64 | >>> import pycallgraph |
| | 65 | >>> pycallgraph.__version__ |
| | 66 | '0.5.0' |
| | 67 | >>> |
| | 68 | }}} |
| | 69 | |
| | 70 | There are some example uses [wiki:documentation/0.5.0 here]. |