Debian Codegraph @

INSTALL

raw
1 == cclib installation instructions ==
2
3 === Requirements ===
4
5 Before you install cclib, you need to make sure that you have the following:
6 * Python (version 3.0 and up, although 2.7 will still work)
7 * NumPy (at least version 1.5 is recommended).
8
9 Python is an open-source programming language available from http://www.python.org and it is included in many Linux distributions. In Debian it is installed as follows: (as root)
10
11 apt-get install python python-dev
12
13 NumPy (Numerical Python) adds a fast array facility to Python and is available from http://www.numpy.org. Windows users should use the most recent NumPy installation for the Python version they have (2.4, 2.5). Linux users are recommended to find a binary package for their distribution. In Debian it is installed as follows: (as root)
14
15 apt-get install python-numpy
16
17 Note: Numeric (the old version of Numerical Python) is not supported by the Numerical Python developers and is not supported by cclib.
18
19 To test whether Python is on the PATH, open a command prompt window and type:
20
21 python
22
23 If Python is not on the PATH and you use Windows, add the full path to the directory containing it to the end of the PATH variable under Control Panel/System/Advanced Settings/Environment Variables. If you use Linux and Python is not on the PATH, put/edit the appropriate line in your .bashrc or similar startup file.
24
25 To test, try importing NumPy at the Python prompt. You should see something similar to the following:
26
27 $ python3
28 Python 3.2.3 (default, Feb 27 2014, 21:31:18)
29 [GCC 4.6.3] on linux2
30 Type "help", "copyright", "credits" or "license" for more information.
31 >>> import numpy
32 >>> numpy.__version__
33 '1.6.2'
34
35 (To exit, press CTRL+Z in Windows or CTRL+D in Linux)
36
37 === Installing cclib ===
38
39 On Debian, Ubuntu and other derived Linux distribution, cclib can be quickly installed with the command:
40
41 aptitude install cclib
42
43 The version installed from a distribuion might not be the most recent one. To install the most recent version, first download the source code of cclib. Extract the cclib tar file or zip file at an appropriate location, which we will call INSTALLDIR. Open a command prompt and change directory to INSTALLDIR. Next, run the following commands:
44
45 python setup.py build
46 python setup.py install (as root)
47
48 To test, trying importing cclib at the Python prompt. You should see something similar to the following:
49
50 $ python3
51 Python 3.2.3 (default, Feb 27 2014, 21:31:18)
52 [GCC 4.6.3] on linux2
53 Type "help", "copyright", "credits" or "license" for more information.
54 Press ESC for command-line completion (twice for guesses).
55 History is saved to ~/.pyhistory.
56 >>> import cclib
57 >>> cclib.__version__
58 '1.6.2'
59
60 To run the unit tests, change directory into INSTALLDIR/test and run the following command:
61
62 python testall.py
63
64 This tests the program using the example data files included in the INSTALLDIR/data directory.
65
66 === What next? ===
67
68 * Read the documentation at:
69 http://cclib.github.io
70 * Read the list and specifications of the extracted data at:
71 http://cclib.github.io/data.html
72 * Send any questions to the cclib-users mailing list at:
73 https://lists.sourceforge.net/lists/listinfo/cclib-users.