pip install pgvenv
Project description
Install PostgreSQL with pip install pgvenv
pgvenv
is a Python package that embeds a fully isolated PostgreSQL installation
in your virtual environmnent.
pip install pgvenv
PostgreSQL will be built from source,
using --prefix=$VENVPATH
.
Its binaries (psql
,pg_config
,postgres
etc.)
will be put under venv/bin
along with the pip
, python3
binaries.
python3.11 -m venv ./venv
PGVERSION=17.4 CFLAGS="-O2" PGCONFIGUREFLAGS="--without-icu" \
./venv/bin/pip install pgvenv
You can now use your favorite scripts
./venv/bin/pg_config --version # PostgreSQL 17.4
./venv/bin/initdb ./pgdata
./venv/bin/postgres -D ./pgdata
Installation
This requires:
- Autoreconf
- The normal C compiler toolchain, such as gcc and make.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pgvenv-0.1.1.tar.gz
(4.0 kB
view details)
File details
Details for the file pgvenv-0.1.1.tar.gz
.
File metadata
- Download URL: pgvenv-0.1.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
e56f07c00468f9819947eeeb5f545343ab6ff3faade63c40bb6917e6c8799229
|
|
MD5 |
5f2ebd87980033cd5704550fee198d87
|
|
BLAKE2b-256 |
e5e3aac59c2fa566451fbb7e8832ebbdd7b26cee94571a496fe5dd65741bce14
|