mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-03 18:38:21 +00:00
Fix Conda Python detection on Windows (#2279)
## Summary In #2102, I did some refactor, and changed a method to return the Python executable path rather than the parent directory path. But I missed this one codepath for Conda on Windows. Closes https://github.com/astral-sh/uv/issues/2269. ## Test Plan - Installed micromamba on my Windows machine. - Reproduced the failure in the linked issue. - Verified that `python.exe` exists at `${CONDA_PREFIX}\python.exe`. - Ran with this change; installed successfully.
This commit is contained in:
parent
4796927c4c
commit
c3cd550a7a
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ pub(crate) fn detect_python_executable(venv: impl AsRef<Path>) -> PathBuf {
|
|||
}
|
||||
|
||||
// Fallback for Conda environments.
|
||||
venv.to_path_buf()
|
||||
venv.join("python.exe")
|
||||
} else {
|
||||
// Search for `python` in the `bin` directory.
|
||||
venv.join("bin").join("python")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue