Skip to content

Commit

Permalink
Fixup runtime Pip installed wheel dir symlink.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirois committed Oct 14, 2024
1 parent 793ce6f commit 9f3d867
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pex/pip/installation.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,9 @@ def _install_wheel(wheel_path):
with atomic_directory(cast(str, runtime_key_dir.symlink_dir)) as runtime_atomic_dir:
if not runtime_atomic_dir.is_finalized():
source_path = os.path.join(runtime_atomic_dir.work_dir, wheel_name)
relative_target_path = os.path.relpath(installed_wheel_dir, runtime_key_dir)
relative_target_path = os.path.relpath(
installed_wheel_dir, runtime_key_dir.symlink_dir
)
os.symlink(relative_target_path, source_path)
return installed_wheel_dir

Expand Down

0 comments on commit 9f3d867

Please sign in to comment.