This chapter covers the administration of py-postgresql. This includes installation and other aspects of working with py-postgresql such as environment variables and configuration files.


py-postgresql uses Python’s distutils package to manage the build and installation process of the package. The normal entry point for this is the script contained in the root project directory.

After extracting the archive and changing the into the project’s directory, installation is normally as simple as:

$ python3 ./ install

However, if you need to install for use with a particular version of python, just use the path of the executable that should be used:

$ /usr/opt/bin/python3 ./ install


These environment variables effect the operation of the package:

PGINSTALLATION The path to the pg_config executable of the installation to use by default.

Table Of Contents

Previous topic


Next topic


This Page