From 1db57882e0ff329c4122c84f75bb54e5844f7b9d Mon Sep 17 00:00:00 2001 From: jfranmatheu <45881831+jfranmatheu@users.noreply.github.com> Date: Thu, 6 Mar 2025 23:20:12 +0100 Subject: [PATCH] Cython setup: include .h (C header) files in the cleaning process. --- cy_setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cy_setup.py b/cy_setup.py index 9021d9e6..8d2d00cd 100644 --- a/cy_setup.py +++ b/cy_setup.py @@ -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}")