Skip to content

Commit

Permalink
also remove '*.o' in cleanup_tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
mattip committed Oct 29, 2024
1 parent e529380 commit 269b7e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cffi/verifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,9 @@ def cleanup_tmpdir(tmpdir=None, keep_so=False):
suffix = _get_so_suffixes()[0].lower()
for fn in filelist:
if fn.lower().startswith('_cffi_') and (
fn.lower().endswith(suffix) or fn.lower().endswith('.c')):
fn.lower().endswith(suffix) or
fn.lower().endswith('.c') or
fn.lower().endswith('.o')):
try:
os.unlink(os.path.join(tmpdir, fn))
except OSError as e:
Expand Down

0 comments on commit 269b7e6

Please sign in to comment.