Commit c4d354c2 authored by D'Arcy J.M. Cain's avatar D'Arcy J.M. Cain

Add changes from Mikhail Terekhov <terekhov@emc.com>.

Use Extension method from distutils.

Cleaned up mismatched indentation styles while I was at it.
parent c252c972
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
# on using distutils to install Python programs. # on using distutils to install Python programs.
from distutils.core import setup from distutils.core import setup
from distutils.extension import Extension
import sys import sys
if sys.platform == "win32": if sys.platform == "win32":
...@@ -45,10 +46,10 @@ setup (name = "PyGreSQL", ...@@ -45,10 +46,10 @@ setup (name = "PyGreSQL",
py_modules = ['pg', 'pgdb'], py_modules = ['pg', 'pgdb'],
ext_modules = [ Extension( ext_modules = [ Extension(
name='_pg', name='_pg',
'sources': ['pgmodule.c'], sources = ['pgmodule.c'],
'include_dirs': include_dirs, include_dirs = include_dirs,
'library_dirs': library_dirs, library_dirs = library_dirs,
'libraries': optional_libs libraries = optional_libs
)] )]
data_files = data_files data_files = data_files
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment