-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
87 lines (54 loc) · 2.23 KB
/
INSTALL
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
74
75
76
77
78
79
80
81
82
83
84
85
86
========================================
Building and installing a Gamera toolkit
========================================
This is generic information about building and installing a Gamera
toolkit.
**Please make sure that Gamera is built and fully installed before
proceeding.**
Gamera can be downloaded at http://gamera.informatik.hsnr.de/
Standard Build and Install
--------------------------
Download the Toolkit from:
https://gamera.informatik.hsnr.de/addons/index.html
Is to first create a binary "wheel package" under your
user account with::
python setup.py build bdist_wheel
This will create a package file "gamera-version-architecture.whl" in the
"dist" directory, which can then be installed system wide as root with:;
sudo pip install ./dist/gamera-*-*.whl
Additionally, a source code package can be created in the ``dist`` directory
with::
python setup.py sdist
Mac OS-X
========
OS-X support can be considered working but preliminary at this point.
Gamera toolkits will only run on El Capitan( 10.11). We do not plan to support
earlier versions. You will need to install the GNU development tools
(gcc, g++, ld etc.), X11, and Python 3.5 or newer.
Uninstallation
--------------
The unistallation works with pip3 like the installation:
pip uninstall package_name
As the latter requires root privilegue, you need to use ``sudo`` on Linux
Building the documentation
==========================
Once the the toolkit is built, the documentation can be
generated and converted to HTML.
Prerequisites
-------------
Generating documentation requires two third-party Python
libraries:
- docutils_ (version 0.3 or later) for handling reStructuredText documents.
- pygments (version 2.15.1) for colorizing code.
.. _docutils: http://docutils.sourceforge.net/
.. _pygments https://pypi.org/project/Pygments/
Generating
----------
To generate the documentation, go to the ``doc`` directory and run the
``gendoc.py`` script.
sudo python gendoc.py
Alternatively, you can call the ``gendoc.py`` script with the
documentation directory as a commandline argument::
gendoc.py -d /path/to/doc
The output will be placed in the ``doc/html/`` directory. The contents of
this directory can be placed on a webserver for convenient viewing.