From 9f3d86799e21b00916273446cc7c91ea77ac0275 Mon Sep 17 00:00:00 2001 From: John Sirois Date: Mon, 14 Oct 2024 15:36:52 -0700 Subject: [PATCH] Fixup runtime Pip installed wheel dir symlink. --- pex/pip/installation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pex/pip/installation.py b/pex/pip/installation.py index c80c2110f..35038f1ac 100644 --- a/pex/pip/installation.py +++ b/pex/pip/installation.py @@ -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