<#2092 Pex resolves VCS and local project requirem...
# github-notifications
c
#2092 Pex resolves VCS and local project requirements from locks incorrectly. Issue created by jsirois The key code for each follows. VCS pex/pex/resolve/lock_resolver.py Lines 72 to 127 in </pantsbuild/pex/commit/e5661d6178e24611b09b7003dd2a1e37613a2200|e5661d6> Here the error is on line 112 where resolver.download is passed no Targets, meaning it defaults to the current sys.executable to perform the download with. Local Project pex/pex/resolve/lock_resolver.py Lines 155 to 183 in </pantsbuild/pex/commit/e5661d6178e24611b09b7003dd2a1e37613a2200|e5661d6> Here the
digest_local_project
function doesn't even accept a Target: pex/pex/pip/local_project.py Lines 36 to 51 in </pantsbuild/pex/commit/e5661d6178e24611b09b7003dd2a1e37613a2200|e5661d6> Because, in turn,
pep_517.build_sdist
does not accept a Target: pex/pex/build_system/pep_517.py Lines 164 to 174 in </pantsbuild/pex/commit/e5661d6178e24611b09b7003dd2a1e37613a2200|e5661d6> pex/pex/build_system/pep_517.py Lines 90 to 115 in </pantsbuild/pex/commit/e5661d6178e24611b09b7003dd2a1e37613a2200|e5661d6> pex/pex/build_system/pep_517.py Lines 68 to 74 in </pantsbuild/pex/commit/e5661d6178e24611b09b7003dd2a1e37613a2200|e5661d6> Because, in turn,
pep_518.load_build_system
does not accept a Target: pex/pex/build_system/pep_518.py Lines 109 to 139 in </pantsbuild/pex/commit/e5661d6178e24611b09b7003dd2a1e37613a2200|e5661d6> pex/pex/build_system/pep_518.py Lines 71 to 89 in </pantsbuild/pex/commit/e5661d6178e24611b09b7003dd2a1e37613a2200|e5661d6> Which results in the build system venv carrying the ambient
sys.executable
as its Python. pantsbuild/pex