[f3d7de]: doc / source / about_pyke / installing_pyke.txt Maximize Restore History

Download this file

installing_pyke.txt    220 lines (154 with data), 7.4 kB

  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
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
.. $Id$
..
.. Copyright Š 2007-2008 Bruce Frederiksen
..
.. Permission is hereby granted, free of charge, to any person obtaining a copy
.. of this software and associated documentation files (the "Software"), to deal
.. in the Software without restriction, including without limitation the rights
.. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
.. copies of the Software, and to permit persons to whom the Software is
.. furnished to do so, subject to the following conditions:
..
.. The above copyright notice and this permission notice shall be included in
.. all copies or substantial portions of the Software.
..
.. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
.. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
.. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
.. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
.. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
.. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
.. THE SOFTWARE.
restindex
crumb: Installing Pyke
page-description:
System Requirements and installing Pyke.
/description
format: rest
encoding: utf8
output-encoding: utf8
include: yes
initialheaderlevel: 2
/restindex
uservalues
filedate: $Id$
/uservalues
===================================
Installing Pyke
===================================
Index to This Page
=======================
* Licensing_
* `System Requirements`_
* Installation_
* `Installing the Executables`_
* `Installing the Sources`_
* `Installing the Examples`_
* `Installing the HTML Documentation`_
* `Mercurial Repositories`_
* `Repository Directory Structure`_
* Documentation_
Licensing
================
This software is licensed under the MIT license::
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
System Requirements
====================
Pyke is 100% Python, so it should run on any platform supported by Python.
So all you'll need is `Python`_ 2.5 or 2.6.
Installation
==================
Installing the Executables
----------------------------
Pyke is registered on pypi_, so once you have `Python`_ 2.5 or 2.6 with
easy_install_ you can just type (as root)::
# easy_install pyke
Installing the Sources
------------------------
The source code for the latest release can be found on the `Pyke project
download page`_ as ``pyke-<release>.tar.gz``.
If you want the latest developer version, read `Mercurial Repositories`_,
below.
Installing the Examples
-------------------------
There are several examples that are contained in the source directory.
There is a README file for each one that explains how to run it.
These are in the source directory in the ``examples`` subdirectory.
To download just the examples (for example, if you used easy_install to
install Pyke), download the ``pyke_examples-<release>.tar.gz`` file.
See also Examples_.
Installing the HTML Documentation
----------------------------------------
If you'd like to view this html documentation from you hard drive,
it is in the source directory (doc/html), or you can download just the
documentation itself as ``pyke_doc_html-<release>.zip`` file from the
`Pyke project download page`_.
Mercurial Repositories
======================
With mercurial_, you clone the entire repository locally on your computer.
Then you can make changes and commit those changes to your local repository.
If you think those changes might be interesting to everybody, make your local
repository (or a clone of it) publically available (either on your own server,
or on one of the `mercurial hosting sites`_) and send me an email. I will
examine your changes and pull them into the master repository on sourceforge.
To clone the development version of the entire project (including the
examples_ and this documentation) into a directory called *foobar*::
$ hg clone http://pyke.hg.sourceforge.net:8000/hgroot/pyke/pyke foobar
Or to clone the latest release 1 branch::
$ hg clone http://pyke.hg.sourceforge.net:8000/hgroot/pyke/release_1 foobar
Use the *release_1* repository for any work that improves the quality of the
code (bug fixes, code formatting, comments, documentation) that won't break
existing programs and can go into the next point release.
Use the *pyke* repository for new features that will go into the next major
release. I merge all the changes done in the release_1 repository into the
pyke repository.
Finally, use the *pre_2to3* repository for any work that is specific to the
Python3 version of PyKE. Just don't run 2to3 in directly in your working
directory because it will change all of the .py files and we don't want those
changes committed! I merge all the changes done in the pyke repository
into the pre_2to3 repository.
Repository Directory Structure
------------------------------
You'll see the following directories.
* ``doc``
- See `Documentation`_, below.
* ``examples``
- There are several examples. Start with *family_relations*. Look at the
``README`` file for each example to see how to run it. See also,
Examples_.
* ``pyke``
- This is the top-level Python package directory for the Python sources.
This needs to be in a directory on your ``PYTHONPATH``.
The sources for the compilers are in the ``krb_compiler`` subdirectory,
which is expected to be a subpackage of ``pyke``.
Documentation
=================
The ``doc/html`` directory in mercurial_ contains all of these documents.
You can browse these on your hard drive if you'd like.
If you want to regenerate these documents, you'll also need:
* Rest2web_, which requires:
* Docutils_
The sources for the documentation are in ``doc/source``.
To regenerate the documentation, in the ``doc/source`` directory run::
$ bin/gen_html
This:
#. Temporarily appends hyperlink references onto all of the \*.txt files.
#. Runs ``r2w`` to regenerate the files in ``doc/html``
- except for those in ``doc/html/stylesheets`` and ``doc/html/images``.
#. Then strips all of the hyperlink references from the \*.txt files.
I've gone ahead and placed the generated html files in mercurial so that
you can browse the documentation without having to run ``bin/gen_html``.