Patch Python executable name for Windows free-threaded builds (#8310)

A temporary fix for https://github.com/astral-sh/uv/issues/8298 while we
wait for my slower upstream fix at
https://github.com/indygreg/python-build-standalone/pull/373

I think we'll want this machinery anyway to ensure that the various
executable names are available? Otherwise we need to special-case all
the `python` names in `uv run`?

We don't have unit test coverage of managed downloads, so I added an
[integration
test](3170395680)
similar to what we have for Linux.
This commit is contained in:
Zanie Blue 2024-10-17 18:27:55 -05:00 committed by GitHub
parent 3fd69b448e
commit c8cbd62a30
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 114 additions and 1 deletions

View file

@ -142,6 +142,7 @@ impl PythonInstallation {
let installed = ManagedPythonInstallation::new(path)?;
installed.ensure_externally_managed()?;
installed.ensure_canonical_executables()?;
Ok(Self {
source: PythonSource::Managed,