summaryrefslogtreecommitdiff
path: root/doc/installation.rst
blob: 7d691d379d8684909b436291b2efc0b9aa74bfb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Installation
============

Installation can be done in various ways. The simplest form uses pip::

    pip install rsa

Depending on your system you may need to use ``sudo pip`` if you want to install
the library system-wide, or use ``pip install --user rsa`` to install the
library in your home directory.

Installation from source is also quite easy. Download the source and
then type::

    python setup.py install


The sources are tracked in our `Git repository`_ at
GitHub. It also hosts the `issue tracker`_.

.. _`Git repository`: https://github.com/sybrenstuvel/python-rsa.git
.. _`issue tracker`: https://github.com/sybrenstuvel/python-rsa/issues


Dependencies
------------

Python-RSA is compatible with Python versions 3.7 and newer. The last
version with Python 2.7 support was Python-RSA 4.0.

Python-RSA has very few dependencies. As a matter of fact, to use it
you only need Python itself. Loading and saving keys does require an
extra module, though: pyasn1. If you used pip or easy_install like
described above, you should be ready to go.


Development dependencies
------------------------

In order to start developing on Python-RSA, use Git_ to get a copy of
the source::

    git clone https://github.com/sybrenstuvel/python-rsa.git

Use Pipenv_ to install the development requirements in a virtual environment::

    cd python-rsa
    pipenv install --dev

.. _Git: https://git-scm.com/
.. _Pipenv: https://pipenv.pypa.io/en/latest/