diff options
Diffstat (limited to 'docs/installation.rst')
-rw-r--r-- | docs/installation.rst | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/docs/installation.rst b/docs/installation.rst index 3ebbecfd..8fbbcb30 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -24,6 +24,7 @@ We test compiling with ``clang`` as well as ``gcc`` and use the following OpenSSL releases: * ``OpenSSL 0.9.8e-fips-rhel5`` (``RHEL/CentOS 5``) +* ``OpenSSL 0.9.8k`` * ``OpenSSL 0.9.8y`` * ``OpenSSL 1.0.0-fips`` (``RHEL/CentOS 6.4``) * ``OpenSSL 1.0.1`` @@ -73,6 +74,7 @@ You should now be able to build and install cryptography with the usual $ pip install cryptography + Using your own OpenSSL on Linux ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -106,7 +108,8 @@ Using your own OpenSSL on OS X ------------------------------ To link cryptography against a custom version of OpenSSL you'll need to set -``ARCHFLAGS``, ``LDFLAGS``, and ``CFLAGS``. OpenSSL can be installed via `Homebrew`_ or `MacPorts`_: +``ARCHFLAGS``, ``LDFLAGS``, and ``CFLAGS``. OpenSSL can be installed via +`Homebrew`_ or `MacPorts`_: `Homebrew`_ @@ -122,6 +125,31 @@ or `MacPorts`_: $ sudo port install openssl $ env ARCHFLAGS="-arch x86_64" LDFLAGS="-L/opt/local/lib" CFLAGS="-I/opt/local/include" pip install cryptography +Building cryptography with conda +-------------------------------- + +Because of a `bug in conda`_, attempting to install cryptography out of the box +will result in an error. This can be resolved by setting the library path +environment variable for your platform. + +On OS X: + +.. code-block:: console + + $ env DYLD_LIBRARY_PATH="$HOME/anaconda/lib" pip install cryptography + +and on Linux: + +.. code-block:: console + + $ env LD_LIBRARY_PATH="$HOME/anaconda/lib" pip install cryptography + +You will need to set this variable every time you start Python. For more +information, consult `Greg Wilson's blog post`_ on the subject. + + .. _`Homebrew`: http://brew.sh .. _`MacPorts`: http://www.macports.org .. _`pre-compiled binaries`: https://www.openssl.org/related/binaries.html +.. _`bug in conda`: https://github.com/conda/conda-recipes/issues/110 +.. _`Greg Wilson's blog post`: http://software-carpentry.org/blog/2014/04/mr-biczo-was-right.html |