From 128a523d52e4f0985b07fc83939232ce2fee4c13 Mon Sep 17 00:00:00 2001 From: John Sirois Date: Sun, 27 Oct 2024 12:28:27 -0700 Subject: [PATCH] Fix interpreter path mapping. --- pex/interpreter.py | 2 +- pex/pex_bootstrapper.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pex/interpreter.py b/pex/interpreter.py index 70f081039..43f9214f9 100644 --- a/pex/interpreter.py +++ b/pex/interpreter.py @@ -109,7 +109,7 @@ class Platlib(SitePackagesDir): pass -_PATH_MAPPINGS = {} +_PATH_MAPPINGS = {} # type: Dict[str, str] @contextmanager diff --git a/pex/pex_bootstrapper.py b/pex/pex_bootstrapper.py index 722809126..b91d450ce 100644 --- a/pex/pex_bootstrapper.py +++ b/pex/pex_bootstrapper.py @@ -531,7 +531,7 @@ def ensure_venv( from pex.cache.data import record_venv_install from pex.venv.virtualenv import Virtualenv - with interpreter.path_mapping(venv.work_dir, venv_dir): + with interpreter.path_mapping(venv.work_dir, venv_dir.path): virtualenv = Virtualenv.create_atomic( venv_dir=venv, interpreter=pex.interpreter,