Fix `venvlauncher.exe` reference in venv creation (#3160)

I can't get this to reproduce on GitHub Actions -- maybe the builds
there differ, or maybe the builds changed since we added this fix? I'll
check locally, but regardless, this is a typo.

Closes #3158.
This commit is contained in:
Charlie Marsh 2024-04-20 10:16:47 -04:00 committed by GitHub
parent b4ee7d7359
commit bf1036832f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -180,12 +180,12 @@ pub fn create_bare_venv(
Ok(_) => {}
Err(err) if err.kind() == io::ErrorKind::NotFound => {
let launcher = match python_exe {
"python.exe" => "venvwlauncher.exe",
"python.exe" => "venvlauncher.exe",
"pythonw.exe" => "venvwlauncher.exe",
_ => unreachable!(),
};
// If `python.exe` doesn't exist, try the `venvlaucher.exe` shim.
// If `python.exe` doesn't exist, try the `venvlauncher.exe` shim.
let shim = interpreter
.stdlib()
.join("venv")
@ -193,7 +193,7 @@ pub fn create_bare_venv(
.join("nt")
.join(launcher);
// If the `venvwlauncher.exe` shim doesn't exist, then on Conda at least, we
// If the `venvlauncher.exe` shim doesn't exist, then on Conda at least, we
// can look for it next to the Python executable itself.
match fs_err::copy(shim, scripts.join(python_exe)) {
Ok(_) => {}