Skip to content

Commit

Permalink
Cython setup: include .h (C header) files in the cleaning process.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfranmatheu committed Mar 6, 2025
1 parent 2f389dd commit 1db5788
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cy_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def create_extensions_from_pyx_files():
def clean_cython_cache(cy_dir):
"""Clean Cython cache and build files"""
# Remove .c and .cpp files
for ext in ['.c', '.cpp']:
for ext in ['.c', '.cpp', '.h']:
for file in Path(cy_dir).rglob(f'*{ext}'):
file.unlink()
print(f"Removed {file}")
Expand Down

0 comments on commit 1db5788

Please sign in to comment.