uv/crates/uv-python
John Mumm 278a136bcb
Ensure virtual environment is compatible with interpreter on sync (#12884)
It was possible that a virtual environment became out of sync with the
interpreter it pointed to (for example, if a symlink was changed to an
updated Python version). In such a case, `pyvenv.cfg` and
`activate_this.py` would no longer be correct. This PR detects when the
`version` (`venv` module) or `version_info` (uv and `virtualenv`) field
in `pyvenv.cfg` is out of sync with the interpreter. In such a case, uv
recreates the virtual environment.

Closes #12461
2025-04-15 12:01:14 +02:00
..
python Fix GraalPy abi tag parsing and discovery (#12154) 2025-03-13 23:55:07 +00:00
src Ensure virtual environment is compatible with interpreter on sync (#12884) 2025-04-15 12:01:14 +02:00
Cargo.toml Add `UV_PYTHON_DOWNLOADS_JSON_URL` to set custom managed python sources (#10939) 2025-04-07 13:55:00 -04:00
download-metadata.json Sync latest Python releases (#12784) 2025-04-09 12:32:00 -05:00
fetch-download-metadata.py Add support for dynamic musl Python distributions on x86-64 Linux (#12121) 2025-03-11 18:14:10 -05:00
minify-download-metadata.py Add `UV_PYTHON_DOWNLOADS_JSON_URL` to set custom managed python sources (#10939) 2025-04-07 13:55:00 -04:00