aboutsummaryrefslogtreecommitdiffstats
path: root/docs/installation.rst
diff options
context:
space:
mode:
authorAlex Stapleton <alexs@prol.etari.at>2014-07-06 15:12:57 +0100
committerAlex Stapleton <alexs@prol.etari.at>2014-07-06 15:12:57 +0100
commit43a7f4b42956ffbeeac82f443a5ef11d24182325 (patch)
treecb48bc3474ba65c1cae66d5868180239aa972d13 /docs/installation.rst
parent5cb305d90489c42e9c8a6877f3b438175333e44c (diff)
parent419e67a1d515ec7883a1e31608c1618e226fbffb (diff)
downloadcryptography-43a7f4b42956ffbeeac82f443a5ef11d24182325.tar.gz
cryptography-43a7f4b42956ffbeeac82f443a5ef11d24182325.tar.bz2
cryptography-43a7f4b42956ffbeeac82f443a5ef11d24182325.zip
Merge pull request #1206 from reaperhulk/static-windows-builds
switch to static linking on windows and update installation page
Diffstat (limited to 'docs/installation.rst')
-rw-r--r--docs/installation.rst31
1 files changed, 25 insertions, 6 deletions
diff --git a/docs/installation.rst b/docs/installation.rst
index 8fbbcb30..339d8b76 100644
--- a/docs/installation.rst
+++ b/docs/installation.rst
@@ -35,16 +35,35 @@ OpenSSL releases:
On Windows
----------
-If you're on Windows you'll need to make sure you have OpenSSL installed.
-There are `pre-compiled binaries`_ available. If your installation is in
-an unusual location set the ``LIB`` and ``INCLUDE`` environment variables
-to include the corresponding locations. For example:
+The wheel package on Windows is a statically linked build (as of 0.5) so all
+dependencies are included. Just run
+
+.. code-block:: console
+
+ $ pip install cryptography
+
+If you prefer to compile it yourself you'll need to have OpenSSL installed.
+There are `pre-compiled binaries`_ available. If your installation is in an
+unusual location set the ``LIB`` and ``INCLUDE`` environment variables to
+include the corresponding locations.For example:
+
+.. code-block:: console
+
+ C:\> \path\to\vcvarsall.bat x86_amd64
+ C:\> set LIB=C:\OpenSSL\lib\VC\static;C:\OpenSSL\lib;%LIB%
+ C:\> set INCLUDE=C:\OpenSSL\include;%INCLUDE%
+ C:\> pip install cryptography
+
+You can also choose to build statically or dynamically using the
+``PYCA_WINDOWS_LINK_TYPE`` variable. Allowed values are ``static`` (default)
+and ``dynamic``.
.. code-block:: console
C:\> \path\to\vcvarsall.bat x86_amd64
- C:\> set LIB=C:\OpenSSL-1.0.1g-64bit\lib;%LIB%
- C:\> set INCLUDE=C:\OpenSSL-1.0.1g-64bit\include;%INCLUDE%
+ C:\> set LIB=C:\OpenSSL\lib\VC\static;C:\OpenSSL\lib;%LIB%
+ C:\> set INCLUDE=C:\OpenSSL\include;%INCLUDE%
+ C:\> set PYCA_WINDOWS_LINK_TYPE=dynamic
C:\> pip install cryptography
Building cryptography on Linux