Skip to content

Commit 7ec459a

Browse files
authored
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 <raulcumplido@gmail.com> Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
1 parent 34880c0 commit 7ec459a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/scripts/update_stub_docstrings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def _create_importable_pyarrow(pyarrow_pkg, source_dir, install_pyarrow_dir):
264264
print("No .pyi files found in install tree, skipping docstring injection")
265265
sys.exit(0)
266266

267-
with tempfile.TemporaryDirectory() as tmpdir:
267+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmpdir:
268268
pyarrow_pkg = Path(tmpdir) / "pyarrow"
269269
pyarrow_pkg.mkdir()
270270
_create_importable_pyarrow(pyarrow_pkg, source_dir, install_pyarrow_dir)

0 commit comments

Comments
 (0)