Hi dba,

I don't have any experience with building/using Django, but building and 
installing psycopg2 for PostgreSQL 8.3 is more or less painless.

 * Prerequisites

    - Latest Python interpreter (2.4 or later)
    - PostgreSQL installed and in $PATH
    - libpq must have been built with --with-thread-safety option

 * Building

    - make sure the postgres installation is in $PATH
    - find the appropriate python executable ($PYTHON)
    - cd <psycopg2dir> && $PYTHON setup.py build  

 * Installing

    - find the appropriate place to install psycopg if not
      able to install in default /usr, e.g., your home directory
    - $PYTHON setup.py install --prefix=$HOME
    - $PYTHONPATH must then include $HOME/lib/python2.4/site-packages

There are some tests included with psycopg2 that you can run to verify the 
build.

Staale

Reply via email to