From 87d398ba468afd8fe90c2935248c5678ab72ac9c Mon Sep 17 00:00:00 2001 From: Oliver Olsen <103891157+oliversen@users.noreply.github.com> Date: Fri, 29 Nov 2024 00:31:27 +0300 Subject: [PATCH] Use `uv python install` only with uv backend fix wntrblm/nox#899 --- nox/virtualenv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nox/virtualenv.py b/nox/virtualenv.py index dcf2b0f7..cf5a5b0e 100644 --- a/nox/virtualenv.py +++ b/nox/virtualenv.py @@ -593,7 +593,7 @@ def _resolved_interpreter(self) -> str: self._resolved = cleaned_interpreter return self._resolved - if HAS_UV and UV_PYTHON_SUPPORT: + if self.venv_backend == "uv" and HAS_UV and UV_PYTHON_SUPPORT: uv_python_success = uv_install_python(cleaned_interpreter) if uv_python_success: self._resolved = cleaned_interpreter