.. __: https://www.psycopg.org/psycopg3/docs/basic/install.html#local-installation
+- The ``psycopg_pool`` directory contains the `connection pools`__
+ implementations. This is kept as a separate package to allow a different
+ release cycle.
+
+ .. __: https://www.psycopg.org/psycopg3/docs/advanced/pool.html
+
You can create a local virtualenv and install there the packages `in
development mode`__, together with their development and testing
requirements::
python -m venv .venv
source .venv/bin/activate
- pip install -e ./psycopg[dev,test] # for the base Python package
- pip install -e ./psycopg_c # for the C extension module
- pip install -e ./psycopg_pool --no-deps # for the connection pool
+ pip install -e ./psycopg[dev,test] # for the base Python package
+ pip install -e ./psycopg_c # for the C extension module
+ pip install -e ./psycopg_pool # for the connection pool
.. __: https://pip.pypa.io/en/stable/reference/pip_install/#install-editable
This distribution contains the pure Python package ``psycopg``.
-Please check out `the project readme`__ for more details.
+
+Installation
+------------
+
+In short, run the following::
+
+ pip install -U 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
+check out the `Installation documentation`__.
+
+.. __: https://www.psycopg.org/psycopg3/docs/basic/install.html#
+
+
+Hacking
+-------
+
+For development information check out `the project readme`__.
.. __: https://github.com/psycopg/psycopg#readme
pip install psycopg[binary]
+to install a version of the optimization package matching the ``psycopg``
+version installed.
+
+Installing this package requires pip >= 20.3 or newer installed.
+
+This package is not available for every platform: check out `Binary
+installation`__ in the documentation.
+
+.. __: https://www.psycopg.org/psycopg3/docs/basic/install.html
+ #binary-installation
+
Please read `the project readme`__ and `the installation documentation`__ for
more details.
pip install psycopg[c]
+to install a version of the optimization package matching the ``psycopg``
+version installed.
+
+Installing this package requires some prerequisites: check `Local
+installation`__ in the documentation. Without a C compiler and some library
+headers install *will fail*: this is not a bug.
+
+If you are unable to meet the prerequisite needed you might want to install
+``psycopg[binary]`` instead: look for `Binary installation`__ in the
+documentation.
+
+.. __: https://www.psycopg.org/psycopg3/docs/basic/install.html
+ #local-installation
+.. __: https://www.psycopg.org/psycopg3/docs/basic/install.html
+ #binary-installation
+
Please read `the project readme`__ and `the installation documentation`__ for
more details.
Issue Tracker = https://github.com/psycopg/psycopg/issues
Download = https://pypi.org/project/psycopg-c/
-# TODO: classifiers
classifiers =
Development Status :: 3 - Alpha
Intended Audience :: Developers
===================================================================
This distribution contains the optional connection pool package
-``psycopg_pool``.
+`psycopg_pool`__.
+
+.. __: https://www.psycopg.org/psycopg3/docs/advanced/pool.html
+
+This package is kept separate from the main ``psycopg`` package because it is
+likely that it will follow a different release cycle.
You can also install this package using::
.. __: https://github.com/psycopg/psycopg#readme
.. __: https://www.psycopg.org/psycopg3/docs/basic/install.html
+ #installing-the-connection-pool
Copyright (C) 2020-2021 The Psycopg Team
Homepage = https://psycopg.org/
Code = https://github.com/psycopg/psycopg
Issue Tracker = https://github.com/psycopg/psycopg/issues
- Download = https://pypi.org/project/psycopg/
+ Download = https://pypi.org/project/psycopg-pool/
classifiers =
Development Status :: 3 - Alpha