postgreSQL and Python
Drew Fisher
drew at level3.net
Thu Aug 24 17:38:07 EDT 2000
Greetings,
I'm fairly new at adding extensions to Python so I thought I could maybe
come here and get some help.
I am trying to install the PyGres95 module so I can access my postgreSQL
database, and either I don't understand the install instructions, or
I don't have a good grasp of Python's file structure.
In the install instructions, it says:
> You first have to get and build Python and Postgres. You just have to
add to
>your Setup file in the Modules directory of Python distribution :
> pg95 [pg mod]pg95module.c -I[pg inc] -L[pg lib] -lpq
>or, for a dynamic module :
> pg95 [pg mod]pg95module.c ../Objects/access.c -I[pg inc] -L[pg lib]
-lpd
>where:
> pg mod - directory where you did put the module files
> pg inc - path of the Postgres95 include
> pg lib - path of the Postgres 95 libraries
Where do I put this line? Once it's there, how do I re-compile Python
to see it?
Thanks for your help,
Drew Fisher
More information about the Python-list
mailing list