-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
25 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,15 @@ | ||
# postgresql-wheel | ||
A Python wheel containing PostgreSQL | ||
|
||
A Python wheel for Linux containing the PostgreSQL database server. | ||
|
||
The wheel can be installed with pip: | ||
|
||
``` | ||
$ pip install postgresql-wheel | ||
Collecting postgresql-wheel | ||
Using cached postgresql_wheel-13.4-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (13.8 MB) | ||
Installing collected packages: postgresql-wheel | ||
Successfully installed postgresql-wheel-13.4 | ||
$ ipython | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
from cffi import FFI | ||
from pathlib import Path | ||
|
||
ffibuilder = FFI() | ||
from plumbum import local | ||
import postgresql | ||
|
||
ffibuilder.set_source("_postgresql", "") | ||
local.path.append(Path(postgresql.__file__).parent / "bin") | ||
|
||
ffibuilder.cdef("") | ||
|
||
if __name__ == "__main__": | ||
ffibuilder.compile(verbose=True) | ||
initdb = local.cmd.initdb | ||
pg_ctl = local.cmd.pg_ctl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters