X-Git-Url: https://git.mdrn.pl/django-pagination.git/blobdiff_plain/832b3eb386455314553b8024cc926746a730fa8d..4b451daf1c9a4496cd7c844afae283bbdd41ac7d:/doc/installation.rst?ds=sidebyside diff --git a/doc/installation.rst b/doc/installation.rst new file mode 100644 index 0000000..8d60191 --- /dev/null +++ b/doc/installation.rst @@ -0,0 +1,62 @@ +Installation +============ + +Prerequisites +^^^^^^^^^^^^^ + +This package requires django 1.2. It is not tested on earlier versions and may +not work properly there. + +To build the documentation from source you will need sphinx. + +Installation Options +^^^^^^^^^^^^^^^^^^^^ + +There are several installation options available: + +Using Ubuntu PPAs +----------------- + +For Ubuntu 10.04 onward there is a stable PPA (personal package archive): + +* ppa:linaro-validation/ppa + +To add a ppa to an Ubuntu system use the add-apt-repository command:: + + sudo add-apt-repository ppa:linaro-validation/ppa + +After you add the PPA you need to update your package cache:: + + sudo apt-get update + +Finally you can install the package, it is called `python-versiontools`:: + + sudo apt-get install python-linaro-django-pagination + + +Using Python Package Index +-------------------------- + +This package is being actively maintained and published in the `Python Package +Index `_. You can install it if you have `pip +`_ tool using just one line:: + + pip install linaro-django-pagination + + +Using source tarball +-------------------- + +To install from source you must first obtain a source tarball from either pypi +or from `Launchpad `_. To install the package unpack the +tarball and run:: + + python setup.py install + +You can pass ``--user`` if you prefer to do a local (non system-wide) installation. + +.. note:: + + To install from source you will need distutils (replacement of setuptools) + They are typically installed on any Linux system with python but on Windows + you may need to install that separately.