2004-10-29 20:15:45 +04:00
|
|
|
Compiling and installing psycopg
|
|
|
|
********************************
|
2004-10-19 07:17:12 +04:00
|
|
|
|
2004-10-29 20:15:45 +04:00
|
|
|
While psycopg 1.x used autoconf for its build process psycopg 2 switched to
|
|
|
|
the more pythoning setup.py. Currently both psycopg's author and distutils
|
|
|
|
have some limitations so the file setup.cfg is almost unused and most build
|
|
|
|
options are hidden in setup.py. Before building psycopg look at the very
|
|
|
|
first lines of setup.py and change any settings to follow your system (or
|
|
|
|
taste); then:
|
2004-10-19 07:17:12 +04:00
|
|
|
|
2004-10-29 20:15:45 +04:00
|
|
|
python setup.py build
|
2004-10-19 07:17:12 +04:00
|
|
|
|
2004-10-29 20:15:45 +04:00
|
|
|
to build in the local directory; and:
|
2004-10-19 07:17:12 +04:00
|
|
|
|
2004-10-29 20:15:45 +04:00
|
|
|
python setup.py install
|
|
|
|
|
|
|
|
to install system-wide.
|
2004-10-19 07:17:12 +04:00
|
|
|
|