uv/crates/uv-interpreter
Charlie Marsh 5ad373b2ec
Skip Python 2 versions when locating Python (#3476)
## Summary

Unfortunately, the `-I` flag was added in Python 3.4. So if we query a
Python version prior to 3.4 (e.g., Python 2.7), we can't run our script
at all, and lose the ability to match against our structured error.

This PR adds an additional check against the stderr output for these
cases.

Closes https://github.com/astral-sh/uv/issues/3474.

## Test Plan

Installed Python 2.7, and verified that it was skipped (and that we
instead found my `python3`).
2024-05-09 03:25:21 +00:00
..
python Better error for unsupported Python version (#3398) 2024-05-06 11:12:36 +02:00
src Skip Python 2 versions when locating Python (#3476) 2024-05-09 03:25:21 +00:00
Cargo.toml Always activate non-pep508-extensions (#3428) 2024-05-07 16:13:09 +00:00
fetch-version-metadata.py Merge uv-toolchain and uv-interpreter (#3265) 2024-04-30 17:49:46 +00:00
python-version-metadata.json Merge uv-toolchain and uv-interpreter (#3265) 2024-04-30 17:49:46 +00:00
template-version-metadata.py Merge uv-toolchain and uv-interpreter (#3265) 2024-04-30 17:49:46 +00:00