This is an automated email from the ASF dual-hosted git repository.
raulcd pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push:
new 7ec459a416 GH-49531: [CI][Packaging][Python] Ignore cleanup errors
trying to remove loaded DLLs from temp dir (#49532)
7ec459a416 is described below
commit 7ec459a416d6922a191998a12dd9aba08a041ded
Author: Raúl Cumplido <[email protected]>
AuthorDate: Tue Mar 17 17:41:45 2026 +0100
GH-49531: [CI][Packaging][Python] Ignore cleanup errors trying to remove
loaded DLLs from temp dir (#49532)
### Rationale for this change
Updating docstrings is failing on Windows trying to remove arrow.dll from
tempdir because its still loaded in memory.
### What changes are included in this PR?
Added `ignore_cleanup_errors=True`
### Are these changes tested?
Yes via archery
### Are there any user-facing changes?
No
* GitHub Issue: #49531
Authored-by: Raúl Cumplido <[email protected]>
Signed-off-by: Raúl Cumplido <[email protected]>
---
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 44bd19bfdc..5ac424f138 100644
--- a/python/scripts/update_stub_docstrings.py
+++ b/python/scripts/update_stub_docstrings.py
@@ -264,7 +264,7 @@ if __name__ == "__main__":
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)