summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Di Gregorio <fog@initd.org>2008-06-28 18:34:57 +0200
committerFederico Di Gregorio <fog@initd.org>2008-06-28 18:34:57 +0200
commita5e01ef0dfafc186fc59c022ca41e799850b68dd (patch)
tree3a2e21ad9ee021e8aa2e340d37a29356ac499da7
parente664abb248119f98562e1e07a9b68487e219d25c (diff)
downloadpsycopg2-a5e01ef0dfafc186fc59c022ca41e799850b68dd.tar.gz
Fixed spaces in pg_config path
-rw-r--r--ChangeLog4
-rw-r--r--setup.py2
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index bc7da6c..b07879a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-06-28 Federico Di Gregorio <fog@initd.org>
+
+ * setup.py: fixed problem with spaces in pg_config path.
+
2008-05-27 Federico Di Gregorio <fog@initd.org>
* psycopg/pqpath.c: better error checks in _pq_copy_in_v3 to
diff --git a/setup.py b/setup.py
index bf74cb0..c030715 100644
--- a/setup.py
+++ b/setup.py
@@ -66,6 +66,8 @@ if sys.version < '2.2.3':
DistributionMetadata.download_url = None
def get_pg_config(kind, pg_config="pg_config"):
+ if ' ' in pg_config:
+ pg_config = '"'+pg_config+'"'
p = popen2.popen3(pg_config + " --" + kind)
r = p[0].readline().strip()
if not r: