summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2017-10-27 12:27:05 +0100
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2017-10-27 12:34:00 +0100
commitdfee199351429a4170c7d190fbecacb35777de2e (patch)
treed9a45634ca0515cdef20f2a0c6ac633f51c43d04
parent46d8529dde6368e2075b4028150229811429e260 (diff)
downloadpsycopg2-dfee199351429a4170c7d190fbecacb35777de2e.tar.gz
Dropped suggestion for --no-binary :all: to skip wheels
:all: applies to the entire file. --no-binary psycopg2 is the solution. See issue #543
-rw-r--r--doc/src/install.rst27
1 files changed, 22 insertions, 5 deletions
diff --git a/doc/src/install.rst b/doc/src/install.rst
index 9119753..086bc62 100644
--- a/doc/src/install.rst
+++ b/doc/src/install.rst
@@ -33,6 +33,8 @@ The current `!psycopg2` implementation supports:
.. index::
single: Install; from PyPI
+ single: Install; wheel
+ single: Wheel
Binary install from PyPI
------------------------
@@ -67,21 +69,36 @@ using something like ``pip install -U pip``)
incompatible with other extension modules binding with ``libssl`` as well,
for instance the Python `ssl` module: the result will likely be a
segfault. If you need using both `!psycopg2` and other libraries using
- ``libssl`` please :ref:`install psycopg from source
- <install-from-source>`.
+ ``libssl`` please :ref:`disable the use of wheel packages for Psycopg
+ <disable-wheel>`.
-If you prefer to use the system libraries available on your client you can use
-the :command:`pip` ``--no-binary`` option:
+
+
+.. index::
+ single: Install; disable wheel
+ single: Wheel; disable
+
+.. _disable-wheel:
+
+Disabling wheel packages
+^^^^^^^^^^^^^^^^^^^^^^^^
+
+If you want to disable the use of wheel binary packages and use the system
+system libraries available on your client you can use the :command:`pip`
+|--no-binary option|__:
.. code-block:: console
$ pip install --no-binary psycopg2
+.. |--no-binary option| replace:: ``--no-binary`` option
+.. __: https://pip.pypa.io/en/stable/reference/pip_install/#install-no-binary
+
which can be specified in your :file:`requirements.txt` files too, e.g. use:
.. code-block:: none
- psycopg2>=2.7,<2.8 --no-binary :all:
+ psycopg2>=2.7,<2.8 --no-binary psycopg2
to use the last bugfix release of the `!psycopg2` 2.7 package, specifying to
always compile it from source. Of course in this case you will have to meet