blob: 578dc860c3795dad5c2264b39d1dce92f6143003 [file] [log] [blame]
Sybren A. Stüvelaa28c042011-07-30 23:48:00 +02001Installation
Sybren A. Stüvel3934ab42016-02-05 16:01:20 +01002============
Sybren A. Stüvelaa28c042011-07-30 23:48:00 +02003
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üvel3934ab42016-02-05 16:01:20 +010023The sources are tracked in our `Git repository`_ at
24Github. It also hosts the `issue tracker`_.
Sybren A. Stüvela3fd61a2011-07-31 00:22:31 +020025
Sybren A. Stüvel3934ab42016-02-05 16:01:20 +010026.. _`Git repository`: https://github.com/sybrenstuvel/python-rsa.git
27.. _`issue tracker`: https://github.com/sybrenstuvel/python-rsa/issues
Sybren A. Stüvela3fd61a2011-07-31 00:22:31 +020028
29
30Dependencies
Sybren A. Stüvel3934ab42016-02-05 16:01:20 +010031------------
Sybren A. Stüvela3fd61a2011-07-31 00:22:31 +020032
33Python-RSA has very few dependencies. As a matter of fact, to use it
34you only need Python itself. Loading and saving keys does require an
35extra module, though: pyasn1. If you used pip or easy_install like
36described above, you should be ready to go.
37
Sybren A. Stüvelc1c455d2011-08-01 23:04:30 +020038
Sybren A. Stüvela3fd61a2011-07-31 00:22:31 +020039Development dependencies
Sybren A. Stüvel3934ab42016-02-05 16:01:20 +010040------------------------
Sybren A. Stüvela3fd61a2011-07-31 00:22:31 +020041
42In order to start developing on Python-RSA you need a bit more. Use
Sybren A. Stüvel3934ab42016-02-05 16:01:20 +010043pip to install the development requirements in a virtual environment::
Sybren A. Stüvela3fd61a2011-07-31 00:22:31 +020044
Sybren A. Stüvel3934ab42016-02-05 16:01:20 +010045 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üvel80e44a72012-06-18 16:34:20 +020048
Sybren A. Stüvel80e44a72012-06-18 16:34:20 +020049
Sybren A. Stüvel3934ab42016-02-05 16:01:20 +010050Once these are installed, use Git_ to get a copy of the source::
Sybren A. Stüvela3fd61a2011-07-31 00:22:31 +020051
Sybren A. Stüvel3934ab42016-02-05 16:01:20 +010052 hg clone https://github.com/sybrenstuvel/python-rsa.git
Sybren A. Stüvel80e44a72012-06-18 16:34:20 +020053 python setup.py develop
Sybren A. Stüvela3fd61a2011-07-31 00:22:31 +020054
Sybren A. Stüvel3934ab42016-02-05 16:01:20 +010055.. _Git: https://git-scm.com/