Skip to content

Commit

Permalink
[BUILD] Ensure parent directory exists before creating symlinks (#5258)
Browse files Browse the repository at this point in the history
Fixes #5256
  • Loading branch information
peterbell10 authored Nov 25, 2024
1 parent c780bf4 commit 22e212b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ def update_symlink(link_path, source_path):
shutil.rmtree(link_path)

print(f"creating symlink: {link_path} -> {source_path}", file=sys.stderr)
link_path.absolute().parent.mkdir(parents=True, exist_ok=True) # Ensure link's parent directory exists
link_path.symlink_to(source_path, target_is_directory=True)


Expand Down

0 comments on commit 22e212b

Please sign in to comment.