From 5e3d90db263f0434da12d34ccc1a4376621b36e1 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Fri, 12 Apr 2024 13:35:25 -0400 Subject: [PATCH] fix: disallow UV_SYSTEM_PYTHON (#817) Signed-off-by: Henry Schreiner --- nox/virtualenv.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nox/virtualenv.py b/nox/virtualenv.py index bf93f9f9..17c59823 100644 --- a/nox/virtualenv.py +++ b/nox/virtualenv.py @@ -34,7 +34,12 @@ # Problematic environment variables that are stripped from all commands inside # of a virtualenv. See https://github.com/theacodes/nox/issues/44 _BLACKLISTED_ENV_VARS = frozenset( - ["PIP_RESPECT_VIRTUALENV", "PIP_REQUIRE_VIRTUALENV", "__PYVENV_LAUNCHER__"] + [ + "PIP_RESPECT_VIRTUALENV", + "PIP_REQUIRE_VIRTUALENV", + "__PYVENV_LAUNCHER__", + "UV_SYSTEM_PYTHON", + ] ) _SYSTEM = platform.system()