Обсуждение: PyGreSQL: setup.py is broken in RC1

Поиск
Список
Период
Сортировка

PyGreSQL: setup.py is broken in RC1

От
Mikhail Terekhov
Дата:
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 )


Re: PyGreSQL: setup.py is broken in RC1

От
Bruce Momjian
Дата:
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,
Pennsylvania19026
 


Re: PyGreSQL: setup.py is broken in RC1

От
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.

>
> > 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



Re: PyGreSQL: setup.py is broken in RC1

От
darcy@druid.net (D'Arcy J.M. Cain)
Дата:
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.


Postgres and php4

От
Juddy Gómez
Дата:
How can i do the connection between php4 and postgres?





_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



Re: Postgres and php4

От
"Poul L. Christiansen"
Дата:
Use the PHP function pg_connect. For this function to work you must
compile PHP with PostgreSQL support.

Poul L. Christiansen

Juddy Gómez wrote:
> 
> How can i do the connection between php4 and postgres?
> 
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org