From 2b141d858082488645e99a48f92e97bdc7c1fc58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Cumplido?= Date: Tue, 17 Mar 2026 10:54:30 +0100 Subject: [PATCH] GH-49531: [CI][Packaging][Python] Ignore cleanup errors trying to remove loaded DLLs from temp dir --- python/scripts/update_stub_docstrings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/scripts/update_stub_docstrings.py b/python/scripts/update_stub_docstrings.py index 44bd19bfdc8c..5ac424f138a0 100644 --- a/python/scripts/update_stub_docstrings.py +++ b/python/scripts/update_stub_docstrings.py @@ -264,7 +264,7 @@ def _create_importable_pyarrow(pyarrow_pkg, source_dir, install_pyarrow_dir): print("No .pyi files found in install tree, skipping docstring injection") sys.exit(0) - with tempfile.TemporaryDirectory() as tmpdir: + with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir: pyarrow_pkg = Path(tmpdir) / "pyarrow" pyarrow_pkg.mkdir() _create_importable_pyarrow(pyarrow_pkg, source_dir, install_pyarrow_dir)