Skip to content

Commit

Permalink
Fix Windows build.
Browse files Browse the repository at this point in the history
  • Loading branch information
scoder committed Mar 24, 2024
1 parent d733811 commit d3bdb30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,10 @@ def prepare_extensions(use_cython=True):
modified = True
last_was_push = b'#pragma GCC diagnostic push' in line
f.write(line)

if modified:
print("Fixed Cython 3.0.9 generated source file " + source_file)
os.unlink(source_file)
os.rename(temp_file, source_file)
else:
os.unlink(temp_file)
Expand Down

0 comments on commit d3bdb30

Please sign in to comment.