Skip to content

Commit

Permalink
Put cleanup back in
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane committed Apr 7, 2023
1 parent a7b5a1d commit 81c0087
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cibuildwheel/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import argparse
import os
import shutil
import sys
import tarfile
import textwrap
Expand Down Expand Up @@ -168,7 +169,7 @@ def main() -> None:
finally:
# avoid https://github.com/python/cpython/issues/86962 by performing
# cleanup manually
# shutil.rmtree(temp_dir, ignore_errors=sys.platform.startswith("win"))
shutil.rmtree(temp_dir, ignore_errors=sys.platform.startswith("win"))
if temp_dir.exists():
log.warning(f"Can't delete temporary folder '{temp_dir}'")

Expand Down Expand Up @@ -310,7 +311,7 @@ def build_in_directory(args: CommandLineArguments) -> None:
finally:
# avoid https://github.com/python/cpython/issues/86962 by performing
# cleanup manually
# shutil.rmtree(tmp_path, ignore_errors=sys.platform.startswith("win"))
shutil.rmtree(tmp_path, ignore_errors=sys.platform.startswith("win"))
if tmp_path.exists():
log.warning(f"Can't delete temporary folder '{tmp_path}'")

Expand Down

0 comments on commit 81c0087

Please sign in to comment.