summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py2
1 files changed, 2 insertions, 0 deletions
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: