pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
python bug
3+ messages / 2 participants
[nested] [flat]

* python bug
@ 2002-12-15 01:50  Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: Bruce Momjian @ 2002-12-15 01:50 UTC (permalink / raw)
  To: pgsql-interfaces; +Cc: darcy@druid.net

I saw this in the python source setup.py:

        include_dirs=['/usr/include/pgsql']
        library_dirs=['usr/lib/pgsql']
                       ^^^
        optional_libs=['pq']
        data_files = []

Is the lack of a leading slash correct?

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: python bug
@ 2002-12-16 02:51  Gerhard Haering <haering_postgresql@gmx.de>
  parent: Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: Gerhard Haering @ 2002-12-16 02:51 UTC (permalink / raw)
  To: Bruce Momjian <pgman@candle.pha.pa.us>; +Cc: pgsql-interfaces; darcy@druid.net

* Bruce Momjian <pgman@candle.pha.pa.us> [2002-12-14 20:50 -0500]:
> I saw this in the python source setup.py:
> 
>         include_dirs=['/usr/include/pgsql']
>         library_dirs=['usr/lib/pgsql']
>                        ^^^
>         optional_libs=['pq']
>         data_files = []
> 
> Is the lack of a leading slash correct?

No.

It should really be 

    library_dirs=['/usr/lib/pgsql']

*But* is this really the default place where PostgreSQL installs its
libraries?  I thought this was rather /usr/local/lib?

If anybody wants to improve the setup.py part of PyGreSQL, I'd recommend
you take a look at the setup.py file for our altnernative PostgreSQL/Python
adapter:

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/pypgsql/pypgsql/setup.py?rev=HEAD&content-type=te...

We recently put considerable effort in to make pyPgSQL build out of the box
on many platforms (Debian, SuSE, Redhat Linux, FreeBSD, OpenUnix, Windows,
MacOS X, Cygwin plus untested support for a few other platforms).

And of course pyPgSQL is licensed under a liberal BSD-like license as well
:-)

Btw. another question. I noticed that a few interfaces (Perl comes to mind)
have been moved out of the PostgreSQL tree to gborg. Maybe it'd be a good
idea to do that for PyGreSQL as well?

-- Gerhard



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: python bug
@ 2002-12-30 05:09  Bruce Momjian <pgman@candle.pha.pa.us>
  parent: Gerhard Haering <haering_postgresql@gmx.de>
  0 siblings, 0 replies; 3+ messages in thread

From: Bruce Momjian @ 2002-12-30 05:09 UTC (permalink / raw)
  To: Gerhard Haering <haering_postgresql@gmx.de>; +Cc: pgsql-interfaces; darcy@druid.net


Fix applied.  I think we will be moving python and tcl out of /interfaces
to gborg for 7.4.

---------------------------------------------------------------------------

Gerhard Haering wrote:
> * Bruce Momjian <pgman@candle.pha.pa.us> [2002-12-14 20:50 -0500]:
> > I saw this in the python source setup.py:
> > 
> >         include_dirs=['/usr/include/pgsql']
> >         library_dirs=['usr/lib/pgsql']
> >                        ^^^
> >         optional_libs=['pq']
> >         data_files = []
> > 
> > Is the lack of a leading slash correct?
> 
> No.
> 
> It should really be 
> 
>     library_dirs=['/usr/lib/pgsql']
> 
> *But* is this really the default place where PostgreSQL installs its
> libraries?  I thought this was rather /usr/local/lib?
> 
> If anybody wants to improve the setup.py part of PyGreSQL, I'd recommend
> you take a look at the setup.py file for our altnernative PostgreSQL/Python
> adapter:
> 
> http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/pypgsql/pypgsql/setup.py?rev=HEAD&content-type=te...
> 
> We recently put considerable effort in to make pyPgSQL build out of the box
> on many platforms (Debian, SuSE, Redhat Linux, FreeBSD, OpenUnix, Windows,
> MacOS X, Cygwin plus untested support for a few other platforms).
> 
> And of course pyPgSQL is licensed under a liberal BSD-like license as well
> :-)
> 
> Btw. another question. I noticed that a few interfaces (Perl comes to mind)
> have been moved out of the PostgreSQL tree to gborg. Maybe it'd be a good
> idea to do that for PyGreSQL as well?
> 
> -- Gerhard
> 

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2002-12-30 05:09 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-12-15 01:50 python bug Bruce Momjian <pgman@candle.pha.pa.us>
2002-12-16 02:51 ` Gerhard Haering <haering_postgresql@gmx.de>
2002-12-30 05:09   ` Bruce Momjian <pgman@candle.pha.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox