Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix --venv cached Python interpreter info. #2579

Merged
merged 3 commits into from
Oct 27, 2024

Conversation

jsirois
Copy link
Member

@jsirois jsirois commented Oct 27, 2024

Previously, the work dir path of the atomic_directory used to create
the venv would leak into various cached paths in the PythonInterpreter
INTERP-INFO file. Now, these paths are corrected at creation time.

This is work towards pex3 cache prune --last-access which will need to
iterate cached interpreters to find any associated with venvs such that
the interpreter can be pruned when the venv is pruned.

Previously, the work dir path of the `atomic_directory` used to create
the venv would leak into various cached paths in the `PythonInterpreter`
`INTERP-INFO` file. Now, these paths are corrected at creation time.

This is work towards `pex3 cache prune --last-access` which will need to
iterate cached interpreters to find any associated with venvs such that
the interpreter can be pruned when the venv is pruned.
@jsirois jsirois changed the title Fix --venv cacheded Python interpreter info. Fix --venv cached Python interpreter info. Oct 27, 2024
@jsirois jsirois merged commit d1d541e into pex-tool:main Oct 27, 2024
23 checks passed
@jsirois jsirois deleted the venv/interpreter/fix-cached-paths branch October 27, 2024 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant