mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-08-04 12:20:09 +03:00
Work around late initialization in distutils._msvccompiler.
This fixes Github issue #380.
This commit is contained in:
parent
fe4cb0d493
commit
e80bdc1bfd
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')
|
||||||
|
if not self.compiler.initialized:
|
||||||
|
self.compiler.initialize()
|
||||||
self.compiler.spawn(
|
self.compiler.spawn(
|
||||||
['mt.exe', '-nologo', '-manifest',
|
['mt.exe', '-nologo', '-manifest',
|
||||||
os.path.join('psycopg', manifest),
|
os.path.join('psycopg', manifest),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user