This commit is contained in:
llama 2025-10-31 21:26:40 +08:00
parent e7a2763e21
commit 222a868e69
No known key found for this signature in database
GPG key ID: 0B7543854B9413C3

View file

@ -225,7 +225,6 @@ where
venv_command.ensure_success()?;
}
command.env("UV_CACHE_DIR", &state.uv_cache_dir);
command.env("UV_PYTHON_INSTALL_DIR", &state.uv_python_install_dir);
command.env(
"UV_HTTP_TIMEOUT",
@ -244,10 +243,6 @@ where
}
}
if state.no_cache_marker.exists() {
command.env("UV_NO_CACHE", "1");
}
// NOTE: pty and child must live in the same thread
let pty_system = portable_pty::NativePtySystem::default();
@ -695,6 +690,12 @@ fn uv_command(state: &Paths) -> Result<Command> {
.env("UV_DEFAULT_INDEX", &pypi_mirror);
}
if state.no_cache_marker.exists() {
command.env("UV_NO_CACHE", "1");
} else {
command.env("UV_CACHE_DIR", &state.uv_cache_dir);
}
#[cfg(windows)]
{
use std::os::windows::process::CommandExt;