Skip site navigation (1) Skip section navigation (2)

pygresql build/install problems: use

From: george young <gry(at)ll(dot)mit(dot)edu>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: pygresql build/install problems: use
Date: 2003-05-14 19:24:32
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfacespgsql-patches
[python 2.3a1 & 2.2, postgresql 7.3.2 & 7.2.1, x86 linux]

As you note from the above line, I'm wrangling multiple versions
of python and postgres[ql].  I use the PyGreSQL interface from the
postgres source dist.  But I need to install PyGreSQL for other
than the default python.  I know I could hack it by hand, but it
seems like there could be an optional arg to configure like:

  ./configure --with-python=python2.3

to specify a binary (and include files and lib install destination)
other than the default.  Maybe it needs a separate option:


I'm hoping some autoconf wiz will take this in hand -- auto* stuff
scares me...

I succeeded by fixing up
---   Tue Mar 19 08:21:14 2002
+++    Wed May 14 15:10:30 2003
@@ -30,8 +30,8 @@
        optional_libs=[ 'libpqdll', 'wsock32', 'advapi32' ]
        data_files = [ 'libpq.dll' ]
-       include_dirs=['/usr/include/pgsql']
-       library_dirs=['usr/lib/pgsql']
+       include_dirs=['../../include','../libpq','/usr/include/pgsql']
+       library_dirs=['../libpq','/usr/lib/pgsql']
        data_files = []

Isn't this the right thing to do?  It should use the .. lib and include
dirs if they exist, since these are sure to be correct, as opposed
to hard coded /usr/lib/pgsql and /usr/include/pgsql which might 
not exist until an install has been done, and worse, might be from
an older postgres version.

It seems like the makefiles should just run
   $PYTHON build
   $PYTHON install

since has a much better chance of installing in the right
directories, or am I missing something?

 I cannot think why the whole bed of the ocean is
 not one solid mass of oysters, so prolific they seem. Ah,
 I am wandering! Strange how the brain controls the brain!
	-- Sherlock Holmes in "The Dying Detective"


pgsql-patches by date

Next:From: Bruce MomjianDate: 2003-05-15 03:37:05
Subject: Re: GUC and postgresql.conf docs
Previous:From: Tom LaneDate: 2003-05-14 03:35:20
Subject: Re: contrib/tablefunc bugfix

pgsql-interfaces by date

Next:From: Gerhard HäringDate: 2003-05-15 08:28:00
Subject: Re: pygresql build/install problems: use
Previous:From: Stéphane PinelDate: 2003-05-14 17:29:50
Subject: Re: PQhost

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group