Skip to content

Commit

Permalink
fix: don't trigger a background update process for virtualenv (#918)
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii authored Jan 30, 2025
1 parent 47a29b6 commit 73534d2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion nox/virtualenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,13 @@ def create(self) -> bool:
return False

if self.venv_backend == "virtualenv":
cmd = [sys.executable, "-m", "virtualenv", self.location]
cmd = [
sys.executable,
"-m",
"virtualenv",
self.location,
"--no-periodic-update",
]
if self.interpreter:
cmd.extend(["-p", self._resolved_interpreter])
elif self.venv_backend == "uv":
Expand Down

0 comments on commit 73534d2

Please sign in to comment.