summaryrefslogtreecommitdiff
path: root/doc/installation.rst
blob: 47f137f196c2c31418b7f472f5808fd7f813b31a (plain)
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
Installation
==================================================

Installation can be done in various ways. The simplest form uses pip
or easy_install. Either one will work::

    pip install rsa
    easy_install rsa

Depending on your system you may need to use ``sudo pip`` or ``sudo
easy_install``.

Installation from source is also quite easy. Download the source and
then type::

    python setup.py install

or if that doesn't work::

    sudo python setup.py install


.. todo::

    Add a source link here


Dependencies
--------------------------------------------------

Python-RSA has very few dependencies. As a matter of fact, to use it
you only need Python itself. Loading and saving keys does require an
extra module, though: pyasn1. If you used pip or easy_install like
described above, you should be ready to go.

Development dependencies
--------------------------------------------------

In order to start developing on Python-RSA you need a bit more. Use
pip or easy_install to install the following packages:

    - Mercurial
    - nose
    - sphinx
    - pyasn1

Once these are installed, use Mercurial_ to get a copy of the source::

    hg clone http://hg.stuvel.eu/python-rsa
    sudo python setup.py develop


.. _Mercurial: http://hg-scm.com/