File: INSTALL

package info (click to toggle)
bkchem 0.13.0-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 7,280 kB
  • ctags: 8,405
  • sloc: python: 42,283; xml: 168; sh: 138; makefile: 52
file content (73 lines) | stat: -rw-r--r-- 2,672 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
Note: This file describes the installation of source release of BKchem. If you have
      downloaded the binary release, please read the INSTALL.binary file instead.



Installation of BKchem is very simple. But before you can run the program you
must install the following:

1/ Python.
   On www.python.org get a distribution of Python for your platform. Note that
   BKchem will run only on Python 2.3 or newer.
2/ pycairo
   This library is optional and is available only for Linux. It enables high quality
   export to PDF and PNG formats with support for antialiased unicode texts.
   It requires the cairo library. Both can be found on http://cairographics.org/snapshots/.
   The current and tested version is 0.5.1.



--- Single directory deployment ---

No installation is needed to run BKchem. This means that you can run the program
directly after unpacking the downloaded sources.
Simply run the bkchem.py located in the 'bkchem-X.Y.Z/bkchem' directory, where X,Y,Z
are version numbers of BKchem release.


example:
on Unix do
>cd "the dir where you have downloaded the BKchem package"
>tar -xzf bkchem-X.X.X.tgz -C "the dir where you want to unpack BKchem"
>cd "the dir where you have unpacked BKchem"/bkchem-X.Y.Z/bkchem
>python bkchem.py



--- System-wide install ---

Under Linux and other Unix systems you have the possibility to use a 'classic'
way of installing software. Major advantage of doing this is that it you will have
a "bkchem" program in your path, thus easily startable from any path.
For the purpose of installation BKchem uses a standard for installation of
python modules - distutils. The installation is accomplished by simply running
the setup.py script from the bkchem directory with 'install' argument:

>python setup.py install

NOTE: usually you have to be root in order to be able to perform the install! 

This way all python sources will be installed in a standard directory for
third-party modules - usually something like '/usr/lib/python/site-packages'.
The templates, pixmaps and other such stuff will go into 'prefix/share/bkchem',
where prefix is usually 'usr' or 'usr/local'.
Documentation will be put in 'prefix/share/doc/bkchem'.
Finally a sh-script 'prefix/bin/bkchem' will be created so that you can run
bkchem from anywhere you want.

To influence the paths that are used during install - especially the 'prefix'
run:

>python setup.py install --help

to see the available options.

Running 

>python setup.py --help 

will give you another set of options available for the install.


Any comments or reports on installation process are especially welcome as this
is very hard to test thoroughly on a single machine.