From bf1036832fedc9f042e08a634c9192ae5d80c4d2 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Sat, 20 Apr 2024 10:16:47 -0400 Subject: [PATCH] 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. --- crates/uv-virtualenv/src/bare.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/uv-virtualenv/src/bare.rs b/crates/uv-virtualenv/src/bare.rs index acfa11c5d..a5090fdec 100644 --- a/crates/uv-virtualenv/src/bare.rs +++ b/crates/uv-virtualenv/src/bare.rs @@ -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(_) => {}