File PyGreSQL.patch of Package PyGreSQL
--- setup.py
+++ setup.py
@@ -35,6 +35,16 @@
optional_libs=['pq']
data_files = []
+# let variables be overridden from the environment
+# prefix with 'SETUP_PY_' and use all uppercase.
+# 5.3.2004, jw
+
+import os
+for var in ['include_dirs', 'library_dirs', 'optional_libs']:
+ val = os.environ.get('SETUP_PY_' + var.upper())
+ if val:
+ locals()[var] = val.split(':')
+
setup (name = "PyGreSQL",
version = "3.4",
description = "Python PostgreSQL Interfaces",