]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Drop "installing from source" from readme and install docs cleanup
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 26 Sep 2021 21:08:11 +0000 (23:08 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 26 Sep 2021 21:08:11 +0000 (23:08 +0200)
README.rst
docs/basic/install.rst
psycopg/README.rst

index c0101bc8360cdadf7de73fd234570ce9eae41d9d..f12f6a9acd88adade9f5ffe3664c91f3c8e381d7 100644 (file)
@@ -9,30 +9,8 @@ Installation
 
 Quick version::
 
-    pip install -U pip                      # upgrade pip to at least 20.3
-    pip install --pre psycopg[binary,pool]  # install binary files
-
-
-Install from source
--------------------
-
-The library is still in a development stage: you can obtain the most
-up-to-date code `from the GitHub project`__::
-
-    $ pip install git+https://github.com/psycopg/psycopg.git#subdirectory=psycopg
-    $ python3
-    >>> import psycopg
-
-.. __: https://github.com/psycopg/psycopg
-
-You are required to have the ``libpq``, the PostgreSQL client library, already
-installed in the system before using ``psycopg``. On Debian system you can
-obtain it by running::
-
-    sudo apt install libpq5
-
-Please check your system's documentation for information about installing the
-``libpq`` on your platform.
+    pip install --upgrade pip               # upgrade pip to at least 20.3
+    pip install --pre psycopg[binary,pool]  # install binary dependencies
 
 For further information about installation please check `the documentation`__.
 
@@ -42,7 +20,13 @@ For further information about installation please check `the documentation`__.
 Hacking
 -------
 
-In order to work on the Psycopg source code you should clone this repository::
+In order to work on the Psycopg source code you need to have the ``libpq``
+PostgreSQL client library installed in the system. For instance, on Debian
+systems, you can obtain it by running::
+
+    sudo apt install libpq5
+
+After which you can clone this repository::
 
     git clone https://github.com/psycopg/psycopg.git
     cd psycopg
@@ -52,9 +36,8 @@ packages: that's why you don't see a ``setup.py`` here. The packages may have
 different requirements:
 
 - The ``psycopg`` directory contains the pure python implementation of
-  ``psycopg``. The package has only a runtime dependency on the ``libpq``,
-  the PostgreSQL client library, which should have been already installed in
-  your system.
+  ``psycopg``. The package has only a runtime dependency on the ``libpq``, the
+  PostgreSQL client library, which should be installed in your system.
 
 - The ``psycopg_c`` directory contains an optimization module written in
   C/Cython. In order to build it you will need a few development tools: please
index 2f2038d2d3608867c978a51d96f8ed1cd254f36e..b8f2f7e97844c811302cf5e3d33ad382671d3189 100644 (file)
@@ -5,7 +5,7 @@ Installation
 
 In short::
 
-    pip install -U pip                  # upgrade pip to at least 20.3
+    pip install --upgrade pip           # upgrade pip to at least 20.3
     pip install --pre psycopg[binary]
 
 and you should be :ref:`ready to start <module-usage>`.
@@ -21,9 +21,9 @@ packages by running::
 
     pip install --pre psycopg[binary]
 
-This will install a self-contained package with all the libraries needed.
-You will need pip >= 20.3 at least: please run ``pip install -U pip`` to update
-it beforehand.
+This will install a self-contained package with all the libraries needed. You
+will need pip >= 20.3 at least: please run ``pip install --upgrade pip`` to
+update it beforehand.
 
 The above package should work in most situations. It **will not work** in
 some cases though:
@@ -54,8 +54,8 @@ In these case you should proceed to a :ref:`local installation
 Local installation
 ------------------
 
-A "Local installation" means obtaining a performing and maintainable library.
-The library will include a performing C module and will be bound to the system
+A "Local installation" results in a performing and maintainable library. The
+library will include a the speed-up C module and will be linked to the system
 libraries (``libpq``, ``libssl``...) so that system upgrade of libraries will
 upgrade the libraries used by Psycopg 3 too. This is the preferred way to
 install Psycopg for a production site.
@@ -63,8 +63,8 @@ install Psycopg for a production site.
 In order to perform a local installation you need some prerequisites:
 
 - a C compiler,
-- Python development headers (e.g. the python3-dev package).
-- PostgreSQL client development headers (e.g. the libpq-dev package).
+- Python development headers (e.g. the ``python3-dev`` package).
+- PostgreSQL client development headers (e.g. the ``libpq-dev`` package).
 - The :program:`pg_config` program available in the :envvar:`PATH`.
 
 You **must be able** to troubleshoot an extension build, for instance you must
index 07d3e741a373cf3b1216f29306d54032e5866740..d1e30bfe5d5aa8dd81bf36f8c331648ff9774d57 100644 (file)
@@ -11,7 +11,7 @@ Installation
 
 In short, run the following::
 
-    pip install -U pip                  # to upgrade pip
+    pip install --upgrade pip           # to upgrade pip
     pip install psycopg[binary,pool]    # to install package and dependencies
 
 If something goes wrong, and for more information about installation, please