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()