Thread: Quick question about install

Quick question about install

From
Patrick Wong
Date:

Hi,

 

I could not find this information on your website, but is there a way to install psycopg2 without pg_config?  Our environment uses only remote connections to the database server.

 

Please advise,

Patrick

 

 

 

 

 


See http://www.peak6.com/email_disclaimer.php for terms and conditions related to this email

Re: Quick question about install

From
Daniele Varrazzo
Date:
On Mon, Jun 20, 2011 at 5:51 PM, Patrick Wong <pwong@optionshouse.com> wrote:

> I could not find this information on your website, but is there a way to
> install psycopg2 without pg_config?  Our environment uses only remote
> connections to the database server.

No, not out-of-the-box. pg_config is used to locate the postgres
client-side libraries required by psycopg in a portable way. If you
have the development libraries and include files, you usually have
pg_config too.

Of course if you know what you are doing you can hack the setup.py and
supply the informations required replacing the function calling
pg_config with a mock returning hardcoded values.

-- Daniele

Re: Quick question about install

From
maplabs@light42.com
Date:
well, Patrick, you understand that the client has to have a binary
connection to a libpq somehow, yes?
In practice, a simple approach is to install a postgresql on the client
side, PC, Mac or Linux, then install psycopg2, which will find the
libpq it needs.. 

  If there are ways of having a psycopg2 client without a libpq, its
new to me!
So a 'remote connection' isnt enough to install psycopg2, if my
understanding is correct

==
Brian Hamlin
GeoCal
OSGeo California Chapter
(415) 717-4462 cell

On Wed, 22 Jun 2011 14:50:25 +0100, Daniele Varrazzo  wrote:
On Mon, Jun 20, 2011 at 5:51 PM, Patrick Wong <pwong@optionshouse.com> wrote:
>
> > I could not find this information on your website, but is there a way to
> > install psycopg2 without pg_config?  Our environment uses only remote
> > connections to the database server.
>
> No, not out-of-the-box. pg_config is used to locate the postgres
> client-side libraries required by psycopg in a portable way. If you
> have the development libraries and include files, you usually have
> pg_config too.
>
> Of course if you know what you are doing you can hack the setup.py and
> supply the informations required replacing the function calling
> pg_config with a mock returning hardcoded values.
>
> -- Daniele
>
> -- Sent via psycopg mailing list (psycopg@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/psycopg
>
>