mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-08-03 20:00:09 +03:00
Work around late initialization in distutils._msvccompiler.
This commit is contained in:
parent
e80bdc1bfd
commit
6a316f7a51
2
setup.py
2
setup.py
|
@ -301,6 +301,8 @@ class psycopg_build_ext(build_ext):
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
ext_path = os.path.join(self.build_lib,
|
ext_path = os.path.join(self.build_lib,
|
||||||
'psycopg2', '_psycopg.pyd')
|
'psycopg2', '_psycopg.pyd')
|
||||||
|
# Make sure spawn() will work if compile() was never
|
||||||
|
# called. https://github.com/psycopg/psycopg2/issues/380
|
||||||
if not self.compiler.initialized:
|
if not self.compiler.initialized:
|
||||||
self.compiler.initialize()
|
self.compiler.initialize()
|
||||||
self.compiler.spawn(
|
self.compiler.spawn(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user