# Installing Pyke ## Index to This Page Licensing System Requirements Other Required Packages Installation Run the Examples Viewing the HTML Documentation Repository Directory Structure ## 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, 2.6 or 3.1. ### Other Required Packages No other packages are required to develop, run and distribute an application using Pyke. But there are package requirements to do the following additional things:
If you want to | you also need | minimum version
--- | --- | ---
run the web_framework example | HTMLTemplate | 1.5
run the unit tests | doctest-tools | 1.0a1
rebuild the html documentation | rest2web | 0.5
docutils | 0.4.1
If the docutils package is not part of your standard Python installation, there is probably a package for it in the package index for your Linux distribution. All of the other packages can be installed as the administrator using easy_install. For example:
    # easy_install HTMLTemplate
## Installation The source code for the latest release can be found on the Pyke project download page as `pyke-<release>.zip` (for Python2) and `pyke3-<release>.zip` (for Python3). After unzipping these, go into the directory and run:
    $ python setup.py build
And then as administrator, run:
    # python setup.py install
The sources include a complete copy of the project directory, including the documentation, unit tests, and examples. If you want to clone the source code repository to contribute to the project development, or to use the latest developer version, read Modifying Pyke. ## Run the Examples There are several examples that are contained in the source directory. Each example is in it's own subdirectory under the `examples` subdirectory, and each has it's own README.txt file that explains how to run it. The web_framework example requires the HTMLTemplate package, version 1.5 or later. This can be installed as administrator with easy_install:
    # easy_install HTMLTemplate
See also Examples. ## Viewing the HTML Documentation This HTML documentation may be viewed directly from you hard drive. The HTML files are in the `doc/html` directory. Start with `doc/html/index.html`. ## Repository Directory Structure You'll see the following directories. `doc` the `html` directory has all of the HTML documentation ready to browse off your hard drive. Start with doc/html/index.html. the `source` directory has all of the sources that were used to generated the HTML documentation. See Rebuilding the HTML Documentation. the `examples` directory just has a copy of the examples used by the .txt files in the `source` directory so that the doctests will work on the `source` directory. You should be able to skip this unless you change an example in one of the `source` files. `cheatsheets` are a collection of text files with notes on various tools used by Pyke, and processes used to maintain Pyke. `examples` There are several examples. Start with family_relations. Look at the `README.txt` file for each example to see how to run it. See also, Examples. `experimental` This is a catch-all directory for various ideas that have been tried, but that have not been incorporated into Pyke. You can safely skip over this directory... `pyke` This is the top-level Python package directory for the Python sources. This needs to be installed into 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`. `Test` This is where the unit test scripts are stored. These use Python's doctest package. Each test file has a .tst suffix. See Running Unit Tests.
Copyright © 2007-2009 Bruce Frederiksen

Page last modified Wed, Nov 04 2009.