mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 05:53:53 -05:00
Clear env vars prior to invoking uv, and add --no-config
This commit is contained in:
parent
24d1d17e6e
commit
7760fd2532
2 changed files with 5 additions and 5 deletions
|
|
@ -34,8 +34,9 @@ pub fn setup_pyenv(args: PyenvArgs) {
|
|||
|
||||
run_command(
|
||||
Command::new(args.uv_bin)
|
||||
.env_clear()
|
||||
.env("UV_PROJECT_ENVIRONMENT", args.pyenv_folder.clone())
|
||||
.args(["sync", "--locked"])
|
||||
.args(["sync", "--locked", "--no-config"])
|
||||
.args(args.extra_args),
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -255,15 +255,14 @@ fn handle_version_install_or_update(state: &State, choice: MainMenuChoice) -> Re
|
|||
None
|
||||
};
|
||||
|
||||
// Sync the venv
|
||||
// Prepare to sync the venv
|
||||
let mut command = Command::new(&state.uv_path);
|
||||
command
|
||||
.current_dir(&state.uv_install_root)
|
||||
.env_clear()
|
||||
.env("UV_CACHE_DIR", &state.uv_cache_dir)
|
||||
// We always want to download python, even if the user has their system set to 'never'
|
||||
.env("UV_PYTHON_DOWNLOADS", "auto")
|
||||
.env("UV_PYTHON_INSTALL_DIR", &state.uv_python_install_dir)
|
||||
.args(["sync", "--upgrade", "--managed-python"]);
|
||||
.args(["sync", "--upgrade", "--managed-python", "--no-config"]);
|
||||
|
||||
// Add python version if .python-version file exists
|
||||
if let Some(version) = &python_version_trimmed {
|
||||
|
|
|
|||
Loading…
Reference in a new issue