pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
PyGreSQL: setup.py is broken in RC1
4+ messages / 4 participants
[nested] [flat]

* PyGreSQL: setup.py is broken in RC1
@ 2001-03-26 21:41  Mikhail Terekhov <terekhov@emc.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Mikhail Terekhov @ 2001-03-26 21:41 UTC (permalink / raw)
  To: pgsql-interfaces

Hi,

setup.py doesn't work in 7.1RC1 and in CVS. Below patch 
fixes this problem.

Regards,
Mikhail



inline patch 1: setup.py (+9/-8 lines) download inline-1.patchIndex: setup.py =================================================================== RCS file: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/python/setup.py,v retrieving revision 1.3 diff -c -r1.3 setup.py *** setup.py 2001/03/15 11:26:22 1.3 --- setup.py 2001/03/26 20:48:02 *************** *** 19,24 **** --- 19,25 ---- # on using distutils to install Python programs. from distutils.core import setup + from distutils.extension import Extension import sys if sys.platform == "win32": *************** *** 42,55 **** url = "http://www.druid.net/pygresql/";, licence = "Python", ! py_modules = ['pg', 'pgdb'], ext_modules = [ Extension( ! name='_pg', ! 'sources': ['pgmodule.c'], ! 'include_dirs': include_dirs, ! 'library_dirs': library_dirs, ! 'libraries': optional_libs ! )] ! data_files = data_files ) --- 43,56 ---- url = "http://www.druid.net/pygresql/";, licence = "Python", ! py_modules = ['pg', 'pgdb'], ext_modules = [ Extension( ! name='_pg', ! sources= ['pgmodule.c'], ! include_dirs= include_dirs, ! library_dirs= library_dirs, ! libraries= optional_libs ! )], ! data_files = data_files )
^ permalink raw reply [nested|flat] 4+ messages in thread

* Re: PyGreSQL: setup.py is broken in RC1
@ 2001-05-04 22:25  Bruce Momjian <pgman@candle.pha.pa.us>
  parent: Mikhail Terekhov <terekhov@emc.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Bruce Momjian @ 2001-05-04 22:25 UTC (permalink / raw)
  To: Mikhail Terekhov <terekhov@emc.com>; +Cc: pgsql-interfaces


Can someone comment on this?  It looks like single quotes are being
changed.

> Hi,
> 
> setup.py doesn't work in 7.1RC1 and in CVS. Below patch 
> fixes this problem.
> 
> Regards,
> Mikhail
> 
> 
> 
> Index: setup.py
> ===================================================================
> RCS file: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/python/setup.py,v
> retrieving revision 1.3
> diff -c -r1.3 setup.py
> *** setup.py	2001/03/15 11:26:22	1.3
> --- setup.py	2001/03/26 20:48:02
> ***************
> *** 19,24 ****
> --- 19,25 ----
>   # on using distutils to install Python programs.
>   
>   from distutils.core import setup
> + from distutils.extension import Extension
>   import sys
>   
>   if sys.platform == "win32":
> ***************
> *** 42,55 ****
>       url = "http://www.druid.net/pygresql/";,
>       licence = "Python",
>   
> ! 	py_modules = ['pg', 'pgdb'],
>       ext_modules = [ Extension(
> ! 		name='_pg',
> !         'sources': ['pgmodule.c'],
> !         'include_dirs': include_dirs,
> !         'library_dirs': library_dirs,
> !         'libraries': optional_libs
> !     )]
> ! 	data_files = data_files
>   )
>   
> --- 43,56 ----
>       url = "http://www.druid.net/pygresql/";,
>       licence = "Python",
>   
> !     py_modules = ['pg', 'pgdb'],
>       ext_modules = [ Extension(
> ! 	name='_pg',
> !         sources= ['pgmodule.c'],
> !         include_dirs= include_dirs,
> !         library_dirs= library_dirs,
> !         libraries= optional_libs
> !     )],
> !     data_files = data_files
>   )
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
> 

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026



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

* Re: PyGreSQL: setup.py is broken in RC1
@ 2001-05-05 12:54  Peter Eisentraut <peter_e@gmx.net>
  parent: Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 1 reply; 4+ messages in thread

From: Peter Eisentraut @ 2001-05-05 12:54 UTC (permalink / raw)
  To: Bruce Momjian <pgman@candle.pha.pa.us>; +Cc: Mikhail Terekhov <terekhov@emc.com>; pgsql-interfaces

Bruce Momjian writes:

> Can someone comment on this?  It looks like single quotes are being
> changed.

The whole file looks out of date.  I don't see why we need this.  Use
./configure --with-python; make; make install.

>
> > Hi,
> >
> > setup.py doesn't work in 7.1RC1 and in CVS. Below patch
> > fixes this problem.
> >
> > Regards,
> > Mikhail
> >
> >
> >
> > Index: setup.py
> > ===================================================================
> > RCS file: /home/projects/pgsql/cvsroot/pgsql/src/interfaces/python/setup.py,v
> > retrieving revision 1.3
> > diff -c -r1.3 setup.py
> > *** setup.py	2001/03/15 11:26:22	1.3
> > --- setup.py	2001/03/26 20:48:02
> > ***************
> > *** 19,24 ****
> > --- 19,25 ----
> >   # on using distutils to install Python programs.
> >
> >   from distutils.core import setup
> > + from distutils.extension import Extension
> >   import sys
> >
> >   if sys.platform == "win32":
> > ***************
> > *** 42,55 ****
> >       url = "http://www.druid.net/pygresql/";,
> >       licence = "Python",
> >
> > ! 	py_modules = ['pg', 'pgdb'],
> >       ext_modules = [ Extension(
> > ! 		name='_pg',
> > !         'sources': ['pgmodule.c'],
> > !         'include_dirs': include_dirs,
> > !         'library_dirs': library_dirs,
> > !         'libraries': optional_libs
> > !     )]
> > ! 	data_files = data_files
> >   )
> >
> > --- 43,56 ----
> >       url = "http://www.druid.net/pygresql/";,
> >       licence = "Python",
> >
> > !     py_modules = ['pg', 'pgdb'],
> >       ext_modules = [ Extension(
> > ! 	name='_pg',
> > !         sources= ['pgmodule.c'],
> > !         include_dirs= include_dirs,
> > !         library_dirs= library_dirs,
> > !         libraries= optional_libs
> > !     )],
> > !     data_files = data_files
> >   )
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 2: you can get off all lists at once with the unregister command
> >     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
> >
>
>

-- 
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter




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

* Re: PyGreSQL: setup.py is broken in RC1
@ 2001-05-09 09:56  D'Arcy J.M. Cain <darcy@druid.net>
  parent: Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 0 replies; 4+ messages in thread

From: darcy@druid.net @ 2001-05-09 09:56 UTC (permalink / raw)
  To: Peter Eisentraut <peter_e@gmx.net>; +Cc: Bruce Momjian <pgman@candle.pha.pa.us>; Mikhail Terekhov <terekhov@emc.com>; pgsql-interfaces

Thus spake Peter Eisentraut
> Bruce Momjian writes:
> 
> > Can someone comment on this?  It looks like single quotes are being
> > changed.
> 
> The whole file looks out of date.  I don't see why we need this.  Use
> ./configure --with-python; make; make install.

There may be systems that just find it easier to build this way.  I'll
ask on the PyGreSQL list how useful this is.

-- 
D'Arcy J.M. Cain <darcy@{druid|vex}.net>   |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.



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


end of thread, other threads:[~2001-05-09 09:56 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-03-26 21:41 PyGreSQL: setup.py is broken in RC1 Mikhail Terekhov <terekhov@emc.com>
2001-05-04 22:25 ` Bruce Momjian <pgman@candle.pha.pa.us>
2001-05-05 12:54   ` Peter Eisentraut <peter_e@gmx.net>
2001-05-09 09:56     ` D'Arcy J.M. Cain <darcy@druid.net>

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