diff options
| author | Federico Di Gregorio <fog@initd.org> | 2006-02-11 06:51:38 +0000 |
|---|---|---|
| committer | Federico Di Gregorio <fog@initd.org> | 2006-02-11 06:51:38 +0000 |
| commit | 8db642945c48b127e57a4ae590ef7e30e1a0164b (patch) | |
| tree | 3911123e38d7cdf03325ca256de4397aaebb59fe | |
| parent | 7f09080ba2784459678ffa3558008ebfba80ba16 (diff) | |
| download | psycopg2-8db642945c48b127e57a4ae590ef7e30e1a0164b.tar.gz | |
MSVC build fixes.
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | setup.py | 9 |
2 files changed, 12 insertions, 1 deletions
@@ -1,3 +1,7 @@ +2006-02-11 Federico Di Gregorio <fog@initd.org> + + * setup.py: Applied patch from lbruno. + 2006-01-11 Federico Di Gregorio <fog@initd.org> * setup.py: does not report an error in pg_config unless the pg_config @@ -123,8 +123,15 @@ class psycopg_build_ext(build_ext): self.libraries.append("ws2_32") self.libraries.append("advapi32") if self.get_compiler() == "msvc": + # MSVC requires an explicit "libpq" + self.libraries.remove("pq") + self.libraries.append("libpq") self.libraries.append("shfolder") - + for path in self.library_dirs: + if os.path.isfile(os.path.join(path, "ms", "libpq.lib")): + self.library_dirs.append(os.path.join(path, "ms")) + break + def finalize_darwin(self): """Finalize build system configuration on darwin platform.""" self.libraries.append('ssl') |
