Sybren A. Stüvel | aa28c04 | 2011-07-30 23:48:00 +0200 | [diff] [blame] | 1 | Installation |
| 2 | ================================================== |
| 3 | |
| 4 | Installation can be done in various ways. The simplest form uses pip |
| 5 | or easy_install. Either one will work:: |
| 6 | |
| 7 | pip install rsa |
| 8 | easy_install rsa |
| 9 | |
| 10 | Depending on your system you may need to use ``sudo pip`` or ``sudo |
| 11 | easy_install``. |
| 12 | |
Sybren A. Stüvel | a3fd61a | 2011-07-31 00:22:31 +0200 | [diff] [blame] | 13 | Installation from source is also quite easy. Download the source and |
| 14 | then type:: |
Sybren A. Stüvel | aa28c04 | 2011-07-30 23:48:00 +0200 | [diff] [blame] | 15 | |
Sybren A. Stüvel | a3fd61a | 2011-07-31 00:22:31 +0200 | [diff] [blame] | 16 | python setup.py install |
| 17 | |
| 18 | or if that doesn't work:: |
| 19 | |
| 20 | sudo python setup.py install |
| 21 | |
| 22 | |
Sybren A. Stüvel | c1c455d | 2011-08-01 23:04:30 +0200 | [diff] [blame] | 23 | The sources are tracked in our `Mercurial repository`_ at |
| 24 | bitbucket.org. It also hosts the `issue tracker`_. |
Sybren A. Stüvel | a3fd61a | 2011-07-31 00:22:31 +0200 | [diff] [blame] | 25 | |
Sybren A. Stüvel | c1c455d | 2011-08-01 23:04:30 +0200 | [diff] [blame] | 26 | .. _`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üvel | a3fd61a | 2011-07-31 00:22:31 +0200 | [diff] [blame] | 29 | |
| 30 | |
| 31 | Dependencies |
| 32 | -------------------------------------------------- |
| 33 | |
| 34 | Python-RSA has very few dependencies. As a matter of fact, to use it |
| 35 | you only need Python itself. Loading and saving keys does require an |
| 36 | extra module, though: pyasn1. If you used pip or easy_install like |
| 37 | described above, you should be ready to go. |
| 38 | |
Sybren A. Stüvel | c1c455d | 2011-08-01 23:04:30 +0200 | [diff] [blame] | 39 | |
Sybren A. Stüvel | a3fd61a | 2011-07-31 00:22:31 +0200 | [diff] [blame] | 40 | Development dependencies |
| 41 | -------------------------------------------------- |
| 42 | |
| 43 | In order to start developing on Python-RSA you need a bit more. Use |
Sybren A. Stüvel | 80e44a7 | 2012-06-18 16:34:20 +0200 | [diff] [blame] | 44 | pip to install the development requirements in a virtual environment |
| 45 | for Python 2.x:: |
Sybren A. Stüvel | a3fd61a | 2011-07-31 00:22:31 +0200 | [diff] [blame] | 46 | |
Sybren A. Stüvel | 80e44a7 | 2012-06-18 16:34:20 +0200 | [diff] [blame] | 47 | virtualenv python-rsa-venv-py2x |
| 48 | . python-rsa-venv-py2x/bin/activate |
| 49 | pip install -r python-rsa/requirements-dev-py2x.txt |
| 50 | |
| 51 | or 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üvel | a3fd61a | 2011-07-31 00:22:31 +0200 | [diff] [blame] | 56 | |
| 57 | Once these are installed, use Mercurial_ to get a copy of the source:: |
| 58 | |
Sybren A. Stüvel | 80e44a7 | 2012-06-18 16:34:20 +0200 | [diff] [blame] | 59 | hg clone https://bitbucket.org/sybren/python-rsa |
| 60 | python setup.py develop |
Sybren A. Stüvel | a3fd61a | 2011-07-31 00:22:31 +0200 | [diff] [blame] | 61 | |
| 62 | .. _Mercurial: http://hg-scm.com/ |