Install a local, non-root PostgreSQL Server with Python "pip" - Mailing list pgsql-announce

From Michel Pelletier via PostgreSQL Announce
Subject Install a local, non-root PostgreSQL Server with Python "pip"
Date
Msg-id 163050151024.700.1942336537066071288@wrigleys.postgresql.org
Whole thread Raw
List pgsql-announce
 

Install a local, non-root PostgreSQL Server with Python "pip"

Hello,

I'd like to announce the first release of postgresql-wheel, a Python package containing an entire compiled PostgreSQL server in a single pip installable file.

https://github.com/michelp/postgresql-wheel

While the pip "wheel" is universally used to package Python code and compiled shared libraries, the format is like other archive formats (apt, yum, etc) and can store any kind of compiled package artifacts, like an entire postgres installation binary.

postgresql-wheel uses the "manylinux" build environments to compile PostgreSQL and include an entire server installation in the wheel. This means you can install a local postgresql server into a virtual environment without any sudo or root privileges.

This package was developed to be useful for test runners that depend on postgresql, just add this wheel as a dependency and create and destroy any number of databases in your setup and teardown code, no external postgres server dependencies required!

-Michel

 

pgsql-announce by date:

Previous
From: Psycopg Development Team via PostgreSQL Announce
Date:
Subject: Psycopg 3.0 beta 1 released!
Next
From: MigOps via PostgreSQL Announce
Date:
Subject: pg_dbms_job v1.1.0 has been released