Skip to content

Commit 56db6cc

Browse files
committed
Ignore clean-up errors for Windows temporary directory
1 parent 6a58ae1 commit 56db6cc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cpython-windows/build.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1235,7 +1235,9 @@ def build_cpython(
12351235
else:
12361236
raise ValueError("unhandled arch: %s" % arch)
12371237

1238-
with tempfile.TemporaryDirectory(prefix="python-build-") as td:
1238+
with tempfile.TemporaryDirectory(
1239+
prefix="python-build-", ignore_cleanup_errors=True
1240+
) as td:
12391241
td = pathlib.Path(td)
12401242

12411243
with concurrent.futures.ThreadPoolExecutor(10) as e:

0 commit comments

Comments
 (0)