mirror of https://github.com/astral-sh/uv
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:
parent
b4ee7d7359
commit
bf1036832f
|
|
@ -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(_) => {}
|
||||
|
|
|
|||
Loading…
Reference in New Issue