Skip to content

Commit d3bdb30

Browse files
committed
Fix Windows build.
1 parent d733811 commit d3bdb30

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,10 @@ def prepare_extensions(use_cython=True):
442442
modified = True
443443
last_was_push = b'#pragma GCC diagnostic push' in line
444444
f.write(line)
445+
445446
if modified:
446447
print("Fixed Cython 3.0.9 generated source file " + source_file)
448+
os.unlink(source_file)
447449
os.rename(temp_file, source_file)
448450
else:
449451
os.unlink(temp_file)

0 commit comments

Comments
 (0)