blob: 0880d6f9ae8a207788c4c8ee62bf4b0ee6c1e1ae [file] [log] [blame]
Sybren A. Stüvelaa28c042011-07-30 23:48:00 +02001Installation
2==================================================
3
4Installation can be done in various ways. The simplest form uses pip
5or easy_install. Either one will work::
6
7 pip install rsa
8 easy_install rsa
9
10Depending on your system you may need to use ``sudo pip`` or ``sudo
11easy_install``.
12
Sybren A. Stüvela3fd61a2011-07-31 00:22:31 +020013Installation from source is also quite easy. Download the source and
14then type::
Sybren A. Stüvelaa28c042011-07-30 23:48:00 +020015
Sybren A. Stüvela3fd61a2011-07-31 00:22:31 +020016 python setup.py install
17
18or if that doesn't work::
19
20 sudo python setup.py install
21
22
Sybren A. Stüvelc1c455d2011-08-01 23:04:30 +020023The sources are tracked in our `Mercurial repository`_ at
24bitbucket.org. It also hosts the `issue tracker`_.
Sybren A. Stüvela3fd61a2011-07-31 00:22:31 +020025
Sybren A. Stüvelc1c455d2011-08-01 23:04:30 +020026.. _`Mercurial repository`: https://bitbucket.org/sybren/python-rsa
27.. _`issue tracker`:
28 https://bitbucket.org/sybren/python-rsa/issues?status=new&status=open
Sybren A. Stüvela3fd61a2011-07-31 00:22:31 +020029
30
31Dependencies
32--------------------------------------------------
33
34Python-RSA has very few dependencies. As a matter of fact, to use it
35you only need Python itself. Loading and saving keys does require an
36extra module, though: pyasn1. If you used pip or easy_install like
37described above, you should be ready to go.
38
Sybren A. Stüvelc1c455d2011-08-01 23:04:30 +020039
Sybren A. Stüvela3fd61a2011-07-31 00:22:31 +020040Development dependencies
41--------------------------------------------------
42
43In order to start developing on Python-RSA you need a bit more. Use
44pip or easy_install to install the following packages:
45
46 - Mercurial
47 - nose
48 - sphinx
49 - pyasn1
Sybren A. Stüvel9d1681b2012-06-17 12:06:18 +020050 - tox
Sybren A. Stüvelc167ba32012-06-18 16:03:32 +020051 - unittest2 (Python 2.x) or unittest2py3k (Python 3.x)
Sybren A. Stüvela3fd61a2011-07-31 00:22:31 +020052
53Once these are installed, use Mercurial_ to get a copy of the source::
54
Sybren A. Stüvelc1c455d2011-08-01 23:04:30 +020055 hg clone https://sybren@bitbucket.org/sybren/python-rsa
Sybren A. Stüvela3fd61a2011-07-31 00:22:31 +020056 sudo python setup.py develop
57
58
59.. _Mercurial: http://hg-scm.com/