Sybren A. Stüvel | aa28c04 | 2011-07-30 23:48:00 +0200 | [diff] [blame] | 1 | Installation |
Sybren A. Stüvel | 3934ab4 | 2016-02-05 16:01:20 +0100 | [diff] [blame] | 2 | ============ |
Sybren A. Stüvel | aa28c04 | 2011-07-30 23:48:00 +0200 | [diff] [blame] | 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 | 3934ab4 | 2016-02-05 16:01:20 +0100 | [diff] [blame] | 23 | The sources are tracked in our `Git repository`_ at |
| 24 | Github. 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 | 3934ab4 | 2016-02-05 16:01:20 +0100 | [diff] [blame] | 26 | .. _`Git repository`: https://github.com/sybrenstuvel/python-rsa.git |
| 27 | .. _`issue tracker`: https://github.com/sybrenstuvel/python-rsa/issues |
Sybren A. Stüvel | a3fd61a | 2011-07-31 00:22:31 +0200 | [diff] [blame] | 28 | |
| 29 | |
| 30 | Dependencies |
Sybren A. Stüvel | 3934ab4 | 2016-02-05 16:01:20 +0100 | [diff] [blame] | 31 | ------------ |
Sybren A. Stüvel | a3fd61a | 2011-07-31 00:22:31 +0200 | [diff] [blame] | 32 | |
| 33 | Python-RSA has very few dependencies. As a matter of fact, to use it |
| 34 | you only need Python itself. Loading and saving keys does require an |
| 35 | extra module, though: pyasn1. If you used pip or easy_install like |
| 36 | described above, you should be ready to go. |
| 37 | |
Sybren A. Stüvel | c1c455d | 2011-08-01 23:04:30 +0200 | [diff] [blame] | 38 | |
Sybren A. Stüvel | a3fd61a | 2011-07-31 00:22:31 +0200 | [diff] [blame] | 39 | Development dependencies |
Sybren A. Stüvel | 3934ab4 | 2016-02-05 16:01:20 +0100 | [diff] [blame] | 40 | ------------------------ |
Sybren A. Stüvel | a3fd61a | 2011-07-31 00:22:31 +0200 | [diff] [blame] | 41 | |
| 42 | In order to start developing on Python-RSA you need a bit more. Use |
Sybren A. Stüvel | 3934ab4 | 2016-02-05 16:01:20 +0100 | [diff] [blame] | 43 | pip to install the development requirements in a virtual environment:: |
Sybren A. Stüvel | a3fd61a | 2011-07-31 00:22:31 +0200 | [diff] [blame] | 44 | |
Sybren A. Stüvel | 3934ab4 | 2016-02-05 16:01:20 +0100 | [diff] [blame] | 45 | virtualenv -p /path/to/your-python-version python-rsa-venv |
| 46 | . python-rsa-venv/bin/activate |
| 47 | pip install -r python-rsa/requirements.txt |
Sybren A. Stüvel | 80e44a7 | 2012-06-18 16:34:20 +0200 | [diff] [blame] | 48 | |
Sybren A. Stüvel | 80e44a7 | 2012-06-18 16:34:20 +0200 | [diff] [blame] | 49 | |
Sybren A. Stüvel | 3934ab4 | 2016-02-05 16:01:20 +0100 | [diff] [blame] | 50 | Once these are installed, use Git_ to get a copy of the source:: |
Sybren A. Stüvel | a3fd61a | 2011-07-31 00:22:31 +0200 | [diff] [blame] | 51 | |
Sybren A. Stüvel | 3934ab4 | 2016-02-05 16:01:20 +0100 | [diff] [blame] | 52 | hg clone https://github.com/sybrenstuvel/python-rsa.git |
Sybren A. Stüvel | 80e44a7 | 2012-06-18 16:34:20 +0200 | [diff] [blame] | 53 | python setup.py develop |
Sybren A. Stüvel | a3fd61a | 2011-07-31 00:22:31 +0200 | [diff] [blame] | 54 | |
Sybren A. Stüvel | 3934ab4 | 2016-02-05 16:01:20 +0100 | [diff] [blame] | 55 | .. _Git: https://git-scm.com/ |