Add --managed-python to uv python install invocation

https://github.com/ankitects/anki/pull/4162#issuecomment-3036984410
This commit is contained in:
Damien Elmes 2025-07-05 01:10:21 +07:00
parent deaf25f757
commit ccc0c7cdbb

View file

@ -302,7 +302,7 @@ fn main_menu_loop(state: &State) -> Result<()> {
.current_dir(&state.uv_install_root)
.env("UV_CACHE_DIR", &state.uv_cache_dir)
.env("UV_PYTHON_INSTALL_DIR", &state.uv_python_install_dir)
.args(["python", "install"]);
.args(["python", "install", "--managed-python"]);
// Add python version if .python-version file exists
if let Some(version) = &python_version_trimmed {