From 1861e0010d2a40c32a9793c5358304786f2b0d1d Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Tue, 9 Aug 2011 11:35:45 +0100 Subject: [PATCH] Fixed --static-libpq setup option (ticket #64) --- NEWS | 1 + setup.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 8f677dfa..b044c3e9 100644 --- a/NEWS +++ b/NEWS @@ -7,6 +7,7 @@ What's new in psycopg 2.4.3 back into a pool. Also discard broken connections (ticket #62). - Lazy import of the slow uuid module, thanks to Marko Kreen. - Fixed NamedTupleCursor.executemany() (ticket #65). + - Fixed --static-libpq setup option (ticket #64). What's new in psycopg 2.4.2 diff --git a/setup.py b/setup.py index a66b2195..161efaef 100644 --- a/setup.py +++ b/setup.py @@ -362,7 +362,7 @@ class psycopg_build_ext(build_ext): self.include_dirs.append(".") if self.static_libpq: - if not hasattr(self, 'link_objects'): + if not getattr(self, 'link_objects', None): self.link_objects = [] self.link_objects.append( os.path.join(pg_config_helper.query("libdir"), "libpq.a"))