mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-10 19:16:34 +03:00
Fixed --have_ssl command line parameter
Added initialization of have_ssl variable so passing --have_ssl on the command line works.
This commit is contained in:
parent
ac1b5ce68a
commit
b537404487
4
setup.py
4
setup.py
|
@ -106,6 +106,8 @@ class psycopg_build_ext(build_ext):
|
|||
self.use_pg_dll = 1
|
||||
self.pgdir = None
|
||||
self.mx_include_dir = None
|
||||
self.use_pydatetime = 1
|
||||
self.have_ssl = have_ssl
|
||||
|
||||
self.pg_config = self.autodetect_pg_config_path()
|
||||
|
||||
|
@ -184,7 +186,7 @@ class psycopg_build_ext(build_ext):
|
|||
if os.path.isfile(os.path.join(path, "ms", "libpq.lib")):
|
||||
self.library_dirs.append(os.path.join(path, "ms"))
|
||||
break
|
||||
if have_ssl:
|
||||
if self.have_ssl:
|
||||
self.libraries.append("libeay32")
|
||||
self.libraries.append("ssleay32")
|
||||
self.libraries.append("user32")
|
||||
|
|
Loading…
Reference in New Issue
Block a user