Quick Installation

Installing Pyflation is as simple as typing:

$ python install

inside the directory where this file is located.


Pyflation has the following requirements:

The pyflation.cosmographs module contains helper functions to use with the Matplotlib package ( but this is not a requirement of the core modules.

In order to compile the documentation you will also need * Sphinx (tested with 1.1.2) - http:// * numpydoc (tested with 0.4) -

Downloading Pyflation

Pyflation can be downloaded from the main website at or from the Python Package Index at

The latest development version is also available as a git and mercurial repository at For example to clone the git repository use:

$ git clone

Basic Installation

First unpack the pyflation-x.x.x.tar.gz file in a suitable location. From the command line this can be done by using:

$ tar xzvf pyflation-x.x.x.tar.gz

Then enter the created directory using:

$ cd pyflation-x.x.x

The script will install pyflation in your local python installation. If you want to change the location of the installation list the possible options using:

$ python install --help

The most important option is –prefix which will change the base directory used in deciding where to store the installation. The default depends on your installation and local python executable but is often /usr. For example if you want everything installed under the directory /home/me/localinstall/ then use:

$ python install --prefix=/home/me/localinstall/

If you do not have the appropriate permissions you may not be able to install to a system directory. In this case using the prefix option with a directory you can write to is the best option.

Alternatively the virtualenv python module provides a useful way of keeping python libraries in separate installations. This is useful if you work with more than one version of a particular library and want to be able to run them side by side. See for more information.

Developer Installation

If you do not want to install Pyflation into your system or local python site-packages directory, then it is possible to use it from within a separate directory structure. Use the –copy-code flag and the –codedir option of to specify where the code directory is (possibly the current directory). Execution of the other scripts should be done from within the new run directory, i.e. where resides, or the run directory should be added to the PYTHONPATH environment variable.

Table Of Contents

Previous topic


Next topic


This Page