python-psycopg2/psycopg2-2.0.2-pg_includedir.patch

15 lines
532 B
Diff

Index: psycopg2-2.0.2/setup.py
===================================================================
--- psycopg2-2.0.2.orig/setup.py 2006-06-11 10:32:10.000000000 -0300
+++ psycopg2-2.0.2/setup.py 2006-06-22 03:39:56.000000000 -0300
@@ -265,6 +265,9 @@ if sys.platform != 'win32':
else:
define_macros.append(('PSYCOPG_VERSION', '\\"'+PSYCOPG_VERSION_EX+'\\"'))
+# PostgreSQL include directory
+include_dirs.append('/usr/include/pgsql')
+
# build the extension
sources = map(lambda x: os.path.join('psycopg', x), sources)