Search for all python3.x in PATH (#5148)

Search for all `python3.x` minor versions in PATH, skipping those we
already know we can use.

For example, let's say `python` and `python3` are Python 3.10. When a
user requests `>= 3.11`, we still need to find a `python3.12` in PATH.
We do so with a regex matcher.

Fixes #4709
This commit is contained in:
konsti
2024-07-18 17:00:01 +02:00
committed by GitHub
parent 36a0ee9822
commit 7beae77283
6 changed files with 167 additions and 15 deletions
+4
View File
@@ -52,8 +52,12 @@ tracing = { workspace = true }
url = { workspace = true }
which = { workspace = true }
[target.'cfg(any(unix, target_os = "wasi", target_os = "redox"))'.dependencies]
rustix = { workspace = true }
[target.'cfg(target_os = "windows")'.dependencies]
winapi = { workspace = true }
winsafe = { workspace = true }
[dev-dependencies]
anyhow = { version = "1.0.80" }