source: main/waeup.sirp/trunk/docs/INSTALL.txt @ 6266

Last change on this file since 6266 was 5768, checked in by Henrik Bettermann, 14 years ago

Remove duplicate installation instructions from README.txt. They should only be in INSTALL.txt.

Remove the Building Docs section in INSTALL.txt. There is a special section which describes this.

The waeup.sirp string should be consitently italic.

File size: 2.4 KB
Line 
1Installation
2************
3
4.. note:: `waeup.sirp` might not work with Python > 2.5
5          currently. Use of Python 2.5 is recommended.
6
7.. note:: `waeup.sirp` does not work on Windows.
8
9Prerequisites
10=============
11
12The `waeup.sirp` package is based on `Grok`_, which is a Python
13framework for agile webapplication development. Grok itself is based
14on `Zope`_.
15
16.. _Grok: http://grok.zope.org/
17
18.. _Zope: http://www.zope.org/
19
20Both, Grok and Zope, are written in Python (with parts written in
21C). You therefore need `Python`_ installed.
22
23.. _Python: http://www.python.org/
24
25Note, that you also need the Python header files and a compiler to
26compile the parts written in C.
27
28To deploy `waeup.sirp` most easily, we use `zc.buildout`_
29
30.. _zc.buildout: http://cheeseshop.python.org/pypi/zc.buildout
31
32You may have setuptools already installed for your system Python. In
33that case, you may need to upgrade it first because buildout requires
34a very recent version::
35
36    $ sudo easy_install -U setuptools
37
38If this command fails because easy_install is not available, there is
39a good chance you do not have setuptools available for your system
40Python. If so, there is no problem because setuptools will be
41installed locally by buildout.
42
43Bootstrap the buildout environment::
44
45    $ python2.5 bootstrap/bootstrap.py
46
47and run the buildout command::
48
49    $ bin/buildout
50    [lots of stuff will be downloaded and installed here]
51
52Note that if you have more than one sandbox for a Zope-based web
53application, it will probably make sense to share the eggs between the
54different sandboxes.  You can tell ``zc.buildout`` to use a central
55eggs directory by creating ``~/.buildout/default.cfg`` with the
56following contents::
57
58    [buildout]
59    eggs-directory = /home/bruno/buildout-eggs
60
61Running the `waeup.sirp` application
62======================================
63
64You can start Zope with the with the following command::
65
66    $ bin/sirpctl fg
67   
68Alternatively you can do:
69
70    $ bin/paster serve parts/etc/deploy.ini   
71
72If you now connect to port 8080 and log in with username 'grok',
73password 'grok', you should be able to add the grok-based applications
74(such as ``University``) from the menu.
75
76Add an instance of ``University`` and click on the link next to the
77then visible entry in the list of installed applications.
78
79Running the tests
80=================
81
82The tests are easily run by executing the test runner that's
83installed in the ``bin`` directory::
84
85    $ bin/test
86
Note: See TracBrowser for help on using the repository browser.