Skip to content

Commit

Permalink
Ignore clean-up errors for Windows temporary directory
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Dec 17, 2024
1 parent 6a58ae1 commit 56db6cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cpython-windows/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -1235,7 +1235,9 @@ def build_cpython(
else:
raise ValueError("unhandled arch: %s" % arch)

with tempfile.TemporaryDirectory(prefix="python-build-") as td:
with tempfile.TemporaryDirectory(
prefix="python-build-", ignore_cleanup_errors=True
) as td:
td = pathlib.Path(td)

with concurrent.futures.ThreadPoolExecutor(10) as e:
Expand Down

0 comments on commit 56db6cc

Please sign in to comment.