mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -05:00
port 739e41ce1
This commit is contained in:
parent
e7a2763e21
commit
222a868e69
1 changed files with 6 additions and 5 deletions
|
|
@ -225,7 +225,6 @@ where
|
||||||
venv_command.ensure_success()?;
|
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_PYTHON_INSTALL_DIR", &state.uv_python_install_dir);
|
||||||
command.env(
|
command.env(
|
||||||
"UV_HTTP_TIMEOUT",
|
"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
|
// NOTE: pty and child must live in the same thread
|
||||||
let pty_system = portable_pty::NativePtySystem::default();
|
let pty_system = portable_pty::NativePtySystem::default();
|
||||||
|
|
||||||
|
|
@ -695,6 +690,12 @@ fn uv_command(state: &Paths) -> Result<Command> {
|
||||||
.env("UV_DEFAULT_INDEX", &pypi_mirror);
|
.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)]
|
#[cfg(windows)]
|
||||||
{
|
{
|
||||||
use std::os::windows::process::CommandExt;
|
use std::os::windows::process::CommandExt;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue