Installation from source

Requirements

RestAuthCommon requires:

Get source

From git

This project is developed on git.fsinf.at. You can view the source code at git.fsinf.at/restauth/restauth-common. To clone the repository to a directory named “RestAuthCommon”, simply do:

git clone http://git.fsinf.at/restauth/restauth-common.git RestAuthCommon

Older versions are marked as tags. You can view available tags with git tag -l. You can use any of those versions with git checkout, for example git checkout 1.0. To move back to the newest version, use git checkout master.

If you ever want to update the source code, just use:

python setup.py clean
git pull

... and do the same as if you where doing a new installation.

Official releases

You can download official releases of RestAuth here. The latest release is version 0.5.0.

Installation

Install mimeparse

First, you will need to install the mimeparse library. You can do this either via methods provided by your operating system, using easy_install (with superuser privileges):

easy_install mimeparse

... or by downloading and installing the source by hand:

wget http://mimeparse.googlecode.com/files/mimeparse-0.1.3.tar.gz
tar xzf mimeparse-0.1.3.tar.gz
cd mimeparse-0.1.3
python setup.py install

Note

Both easy_install and setup.py install usually require superuser privileges.

Install RestAuthCommon

Installation of RestAuthCommon itself is very easy. Just go to the directory where your source is located (“RestAuthCommon” in the above example) and just run:

python setup.py build
python setup.py install

Note

On most systems, the install command requires superuser privileges.

You can verify that the installation worked by running this command from your home directory:

cd
python -c "import RestAuthCommon"

This will throw an ImportError if RestAuthCommon was not installed successfully.

Build documentation

To generate the most recent documentation (the newest version of the document you’re currently reading), just run:

python setup.py build_doc