aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorKimmo Parviainen-Jalanko <kimvais@ssh.com>2014-03-19 18:57:09 +0200
committerAyrx <terrycwk1994@gmail.com>2014-04-08 19:34:03 +0800
commite01e0bf1e942b2476a0a51ddf1207003bf1e91c7 (patch)
tree4b072a898b4333204831aa5dd1f9d5fe9ea72916 /docs
parenta98874bb672be2394946af2b24fc3220abe3de87 (diff)
downloadcryptography-e01e0bf1e942b2476a0a51ddf1207003bf1e91c7.tar.gz
cryptography-e01e0bf1e942b2476a0a51ddf1207003bf1e91c7.tar.bz2
cryptography-e01e0bf1e942b2476a0a51ddf1207003bf1e91c7.zip
Added instructions for instalation with OpenSSL from MacPorts
Diffstat (limited to 'docs')
-rw-r--r--docs/installation.rst16
1 files changed, 14 insertions, 2 deletions
diff --git a/docs/installation.rst b/docs/installation.rst
index c6a2a5c0..eb1f85fb 100644
--- a/docs/installation.rst
+++ b/docs/installation.rst
@@ -94,19 +94,31 @@ 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`_:
.. code-block:: console
$ brew install openssl
+or `MacPorts`_:
+
+.. code-block:: console
+
+ $ sudo port install openssl
+
+
Then install cryptography linking against the brewed version:
+on `Homebrew`_:
.. 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
+on `MacPorts`_:
+.. code-block:: console
+
+ $ 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