Installation ============ Requirements ------------ ``plpygis`` has no dependencies beyond an installation of Python 3 (Python 2 should also work). Additionally, ``plpygis`` can use `Shapely `_ (version 2.0 or greater) if available. Without it, conversion to and from Shapely geometries will be impossible. Python Package Index -------------------- ``plpygis`` may be installed from PyPI. .. code-block:: console $ pip install plpygis It is recommended that ``plpygis`` is installed into the system installation of Python or it may not be available in PL/Python functions. Source ------ The package sources are available at https://github.com/bosth/plpygis. Building and installing ``plpygis`` from source can be done with `setuptools `_: .. code-block:: console $ python -m build Tests ~~~~~ Tests require `pytest `. .. code-block:: console $ pytest Documentation ~~~~~~~~~~~~~ Building the documentation from source requires `Sphinx `_. For a list of supported documentation formats, see the options in the ``doc`` subdirectory: .. code-block:: console $ cd doc $ make