aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-02-13 12:31:24 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-02-13 12:31:24 -0600
commitde5a855ecd84d719b12cb374ff0caa70b75aa82f (patch)
tree6fd1f3d6205afa681b5c64d656c98ce96a7f400e /docs
parent3340adfca3abb1353fc14f1baab7db6f6ca7b6a6 (diff)
parent2e15c7fce6ce478039d150b4d5442b51582e77b4 (diff)
downloadcryptography-de5a855ecd84d719b12cb374ff0caa70b75aa82f.tar.gz
cryptography-de5a855ecd84d719b12cb374ff0caa70b75aa82f.tar.bz2
cryptography-de5a855ecd84d719b12cb374ff0caa70b75aa82f.zip
Merge pull request #606 from chrisglass/installation-ubuntu
Added a docs section on Linux installation
Diffstat (limited to 'docs')
-rw-r--r--docs/installation.rst25
1 files changed, 24 insertions, 1 deletions
diff --git a/docs/installation.rst b/docs/installation.rst
index 7e7348e2..595ccc83 100644
--- a/docs/installation.rst
+++ b/docs/installation.rst
@@ -22,8 +22,31 @@ to include the corresponding locations. For example:
C:\> set INCLUDE=C:\OpenSSL-1.0.1f-64bit\include;%INCLUDE%
C:\> pip install cryptography
+Building cryptography on Linux
+------------------------------
+
+``cryptography`` should build very easily on Linux provided you have a C
+compiler, headers for Python (if you're not using `pypy`), and headers for the
+OpenSSL and `libffi` libraries available on your system.
+
+Debian and Ubuntu systems
+~~~~~~~~~~~~~~~~~~~~~~~~~
+
+For Debian and Ubuntu, the following command line will ensure the required
+dependencies are installed:
+
+.. code-block:: console
+
+ sudo apt-get install build-essential libssl-dev libffi-dev python-dev
+
+You should now be able to build and install cryptography with the usual
+
+.. code-block:: console
+
+ python setup.py install
+
Using your own OpenSSL on Linux
--------------------------------
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Python links to OpenSSL for its own purposes and this can sometimes cause
problems when you wish to use a different version of OpenSSL with cryptography.