From c5b0d6e76dcd255c8cf5e583a4ecbab4423ad893 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Fri, 12 Apr 2024 11:55:46 -0400 Subject: [PATCH] fix: disallow UV_SYSTEM_PYTHON 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()