diff --git a/setup.py b/setup.py index 2de8c5ef..9870af84 100644 --- a/setup.py +++ b/setup.py @@ -301,6 +301,8 @@ class psycopg_build_ext(build_ext): except AttributeError: ext_path = os.path.join(self.build_lib, 'psycopg2', '_psycopg.pyd') + if not self.compiler.initialized: + self.compiler.initialize() self.compiler.spawn( ['mt.exe', '-nologo', '-manifest', os.path.join('psycopg', manifest),