From e01e0bf1e942b2476a0a51ddf1207003bf1e91c7 Mon Sep 17 00:00:00 2001 From: Kimmo Parviainen-Jalanko Date: Wed, 19 Mar 2014 18:57:09 +0200 Subject: Added instructions for instalation with OpenSSL from MacPorts --- docs/installation.rst | 16 ++++++++++++++-- 1 file 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 -- cgit v1.2.3 From 8f90c83337a30221c8e538c7a0d8402729c3ef8b Mon Sep 17 00:00:00 2001 From: Kimmo Parviainen-Jalanko Date: Wed, 19 Mar 2014 18:58:08 +0200 Subject: .rst syntax fix --- docs/installation.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/installation.rst b/docs/installation.rst index eb1f85fb..84d24ca8 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -110,11 +110,13 @@ or `MacPorts`_: 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 -- cgit v1.2.3 From 1ced5b818ea0d364180b4fa631b265367f9cf50b Mon Sep 17 00:00:00 2001 From: Ayrx Date: Tue, 8 Apr 2014 19:41:26 +0800 Subject: Updated instructions to use a common header for each packager --- docs/installation.rst | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/docs/installation.rst b/docs/installation.rst index 84d24ca8..ac4c13cd 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -94,31 +94,20 @@ 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 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 -- cgit v1.2.3