mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-29 12:23:42 +03:00
MSVC build fixes.
This commit is contained in:
parent
7f09080ba2
commit
8db642945c
|
@ -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
|
||||
|
|
7
setup.py
7
setup.py
|
@ -123,7 +123,14 @@ 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."""
|
||||
|
|
Loading…
Reference in New Issue
Block a user