From eb50a2ca32cca16ee2b03ff0691d086defe70447 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Fri, 2 May 2014 09:38:33 -0700 Subject: Fixed #1000 -- document the conda issue and workaround --- docs/installation.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/installation.rst b/docs/installation.rst index 3ebbecfd..3676de29 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -73,6 +73,7 @@ You should now be able to build and install cryptography with the usual $ pip install cryptography + Using your own OpenSSL on Linux ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -122,6 +123,15 @@ 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. Both the nature of the issue and the workaround are +described by `Greg Wilson`_. + + .. _`Homebrew`: http://brew.sh .. _`MacPorts`: http://www.macports.org .. _`pre-compiled binaries`: https://www.openssl.org/related/binaries.html +.. _`Greg Wilson`: http://software-carpentry.org/blog/2014/04/mr-biczo-was-right.html -- cgit v1.2.3 From 8019b8b3691feac6e7b720cd37b5cb95d5f9efb9 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Fri, 2 May 2014 09:56:09 -0700 Subject: Conda is a word I guess --- docs/spelling_wordlist.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/spelling_wordlist.txt b/docs/spelling_wordlist.txt index aae52ae7..b5896158 100644 --- a/docs/spelling_wordlist.txt +++ b/docs/spelling_wordlist.txt @@ -8,6 +8,7 @@ Changelog ciphertext committer committers +conda crypto cryptographic cryptographically -- cgit v1.2.3 From d8fc25704465761aed65e15591ac9e0f4462a857 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Fri, 2 May 2014 10:33:36 -0700 Subject: More details --- docs/installation.rst | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/installation.rst b/docs/installation.rst index 3676de29..3eaa2d02 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -127,11 +127,18 @@ Building cryptography with conda -------------------------------- Because of a bug in conda, attempting to install cryptography out of the box -will result in an error. Both the nature of the issue and the workaround are -described by `Greg Wilson`_. +will result in an error. This can be resolved by setting the +``DYLD_LIBRARY_PATH`` environment variable: + +.. code-block:: console + + $ env DYLD_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 -.. _`Greg Wilson`: http://software-carpentry.org/blog/2014/04/mr-biczo-was-right.html +.. _`Greg Wilson's blog post`: http://software-carpentry.org/blog/2014/04/mr-biczo-was-right.html -- cgit v1.2.3 From f65cba2449232588dd8d7a0ced07c29bea1084ad Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Fri, 2 May 2014 10:40:57 -0700 Subject: typo --- docs/installation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/installation.rst b/docs/installation.rst index 3eaa2d02..032746f3 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -135,7 +135,7 @@ will result in an error. This can be resolved by setting the $ env DYLD_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. +information, consult `Greg Wilson's blog post`_ on the subject. .. _`Homebrew`: http://brew.sh -- cgit v1.2.3 From d694838adae5bb0f19d0b6731cfffc434d4358cf Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Fri, 2 May 2014 14:10:14 -0700 Subject: linkfiy --- docs/installation.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/installation.rst b/docs/installation.rst index 032746f3..865e4cb6 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -126,7 +126,7 @@ or `MacPorts`_: Building cryptography with conda -------------------------------- -Because of a bug in conda, attempting to install cryptography out of the box +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 ``DYLD_LIBRARY_PATH`` environment variable: @@ -141,4 +141,5 @@ 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 -- cgit v1.2.3