Received: from emc.com (emcmail.lss.emc.com [168.159.48.78]) by mail.postgresql.org (8.11.3/8.11.1) with ESMTP id f2QLemw69822 for ; Mon, 26 Mar 2001 16:40:48 -0500 (EST) (envelope-from terekhov@emc.com) Received: from emc.com (luc0166 [168.159.34.166]) by emc.com (8.10.1/8.10.1) with ESMTP id f2QLefx10250 for ; Mon, 26 Mar 2001 16:40:45 -0500 (EST) Message-ID: <3ABFB79B.B6A4E67F@emc.com> Date: Mon, 26 Mar 2001 16:41:47 -0500 From: Mikhail Terekhov Organization: EMC Corporation X-Mailer: Mozilla 4.75 [en] (WinNT; U) X-Accept-Language: ru,en MIME-Version: 1.0 To: pgsql-interfaces@postgresql.org Subject: PyGreSQL: setup.py is broken in RC1 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200103/187 X-Sequence-Number: 1348 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 )