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 |
| 44 | pip or easy_install to install the following packages: |
| 45 | |
| 46 | - Mercurial |
| 47 | - nose |
| 48 | - sphinx |
| 49 | - pyasn1 |
| 50 | |
| 51 | Once these are installed, use Mercurial_ to get a copy of the source:: |
| 52 | |
Sybren A. Stüvel | c1c455d | 2011-08-01 23:04:30 +0200 | [diff] [blame^] | 53 | hg clone https://sybren@bitbucket.org/sybren/python-rsa |
Sybren A. Stüvel | a3fd61a | 2011-07-31 00:22:31 +0200 | [diff] [blame] | 54 | sudo python setup.py develop |
| 55 | |
| 56 | |
| 57 | .. _Mercurial: http://hg-scm.com/ |