Fixed --static-libpq setup option (ticket #64)

This commit is contained in:
Daniele Varrazzo 2011-08-09 11:35:45 +01:00
parent 9870ca4dce
commit 1861e0010d
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@ -7,6 +7,7 @@ What's new in psycopg 2.4.3
back into a pool. Also discard broken connections (ticket #62). back into a pool. Also discard broken connections (ticket #62).
- Lazy import of the slow uuid module, thanks to Marko Kreen. - Lazy import of the slow uuid module, thanks to Marko Kreen.
- Fixed NamedTupleCursor.executemany() (ticket #65). - Fixed NamedTupleCursor.executemany() (ticket #65).
- Fixed --static-libpq setup option (ticket #64).
What's new in psycopg 2.4.2 What's new in psycopg 2.4.2

View File

@ -362,7 +362,7 @@ class psycopg_build_ext(build_ext):
self.include_dirs.append(".") self.include_dirs.append(".")
if self.static_libpq: if self.static_libpq:
if not hasattr(self, 'link_objects'): if not getattr(self, 'link_objects', None):
self.link_objects = [] self.link_objects = []
self.link_objects.append( self.link_objects.append(
os.path.join(pg_config_helper.query("libdir"), "libpq.a")) os.path.join(pg_config_helper.query("libdir"), "libpq.a"))