From c4d354c271e405a48fab9cdaeb41b2d5bc177be0 Mon Sep 17 00:00:00 2001 From: "D'Arcy J.M. Cain" Date: Tue, 27 Mar 2001 10:53:21 +0000 Subject: [PATCH] Add changes from Mikhail Terekhov . Use Extension method from distutils. Cleaned up mismatched indentation styles while I was at it. --- src/interfaces/python/setup.py | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/interfaces/python/setup.py b/src/interfaces/python/setup.py index d1f15c6755..474808ec2a 100755 --- a/src/interfaces/python/setup.py +++ b/src/interfaces/python/setup.py @@ -19,6 +19,7 @@ # on using distutils to install Python programs. from distutils.core import setup +from distutils.extension import Extension import sys if sys.platform == "win32": @@ -35,21 +36,21 @@ else: data_files = [] setup (name = "PyGreSQL", - version = "3.1", - description = "Python PostgreSQL Interfaces", - author = "D'Arcy J. M. Cain", - author_email = "darcy@druid.net", - url = "http://www.druid.net/pygresql/", - licence = "Python", + version = "3.1", + description = "Python PostgreSQL Interfaces", + author = "D'Arcy J. M. Cain", + author_email = "darcy@druid.net", + url = "http://www.druid.net/pygresql/", + licence = "Python", py_modules = ['pg', 'pgdb'], - ext_modules = [ Extension( + ext_modules = [ Extension( name='_pg', - 'sources': ['pgmodule.c'], - 'include_dirs': include_dirs, - 'library_dirs': library_dirs, - 'libraries': optional_libs - )] + sources = ['pgmodule.c'], + include_dirs = include_dirs, + library_dirs = library_dirs, + libraries = optional_libs + )] data_files = data_files )