aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-04-08 10:30:27 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-04-08 10:30:27 -0500
commit0ceb4694005bb4a82dae2a3d5d2a724a4d9108b5 (patch)
tree904a984e42496592345619b9c0168202e3d53ba0 /docs
parenta98874bb672be2394946af2b24fc3220abe3de87 (diff)
parent1ced5b818ea0d364180b4fa631b265367f9cf50b (diff)
downloadcryptography-0ceb4694005bb4a82dae2a3d5d2a724a4d9108b5.tar.gz
cryptography-0ceb4694005bb4a82dae2a3d5d2a724a4d9108b5.tar.bz2
cryptography-0ceb4694005bb4a82dae2a3d5d2a724a4d9108b5.zip
Merge pull request #901 from Ayrx/macports-instructions
Macports instructions
Diffstat (limited to 'docs')
-rw-r--r--docs/installation.rst13
1 files changed, 8 insertions, 5 deletions
diff --git a/docs/installation.rst b/docs/installation.rst
index c6a2a5c0..ac4c13cd 100644
--- a/docs/installation.rst
+++ b/docs/installation.rst
@@ -94,19 +94,22 @@ 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`_:
+``ARCHFLAGS``, ``LDFLAGS``, and ``CFLAGS``. OpenSSL can be installed via `Homebrew`_ or `MacPorts`_:
+
+`Homebrew`_
.. code-block:: console
$ brew install openssl
+ $ env ARCHFLAGS="-arch x86_64" LDFLAGS="-L/usr/local/opt/openssl/lib" CFLAGS="-I/usr/local/opt/openssl/include" pip install cryptography
-Then install cryptography linking against the brewed version:
+or `MacPorts`_:
.. code-block:: console
- $ env ARCHFLAGS="-arch x86_64" LDFLAGS="-L/usr/local/opt/openssl/lib" CFLAGS="-I/usr/local/opt/openssl/include" pip install cryptography
-
+ $ sudo port install openssl
+ $ env ARCHFLAGS="-arch x86_64" LDFLAGS="-L/opt/local/lib" CFLAGS="-I/opt/local/include" pip install cryptography
.. _`Homebrew`: http://brew.sh
+.. _`MacPorts`: http://www.macports.org
.. _`pre-compiled binaries`: https://www.openssl.org/related/binaries.html