Skip to content

Commit 2029f2c

Browse files
committed
Fix for windows build
1 parent 82aef99 commit 2029f2c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ def build_extension(self, ext):
8181
else:
8282
if self.compiler.compiler_type == "msvc":
8383
compiler = copy.deepcopy(self.compiler)
84-
compiler.initialize()
84+
if not compiler.initialized:
85+
compiler.initialize()
8586
compiler_command = f'"{compiler.cc}"'
8687
compiler_args = compiler.compile_options
8788
elif self.compiler.compiler_type == "unix":

0 commit comments

Comments
 (0)