blob: afe093f2cbe446830cb9e275144c162dde4040d7 [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
Sybren A. Stüvel80e44a72012-06-18 16:34:20 +020044pip to install the development requirements in a virtual environment
45for Python 2.x::
Sybren A. Stüvela3fd61a2011-07-31 00:22:31 +020046
Sybren A. Stüvel80e44a72012-06-18 16:34:20 +020047 virtualenv python-rsa-venv-py2x
48 . python-rsa-venv-py2x/bin/activate
49 pip install -r python-rsa/requirements-dev-py2x.txt
50
51or Python 3.x::
52
53 virtualenv python-rsa-venv-py3x
54 . python-rsa-venv-py3x/bin/activate
55 pip install -r python-rsa/requirements-dev-py3x.txt
Sybren A. Stüvela3fd61a2011-07-31 00:22:31 +020056
57Once these are installed, use Mercurial_ to get a copy of the source::
58
Sybren A. Stüvel80e44a72012-06-18 16:34:20 +020059 hg clone https://bitbucket.org/sybren/python-rsa
60 python setup.py develop
Sybren A. Stüvela3fd61a2011-07-31 00:22:31 +020061
62.. _Mercurial: http://hg-scm.com/