Skip to content

Commit

Permalink
fix: disallow UV_SYSTEM_PYTHON (#817)
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii authored Apr 12, 2024
1 parent 55c7eaf commit 5e3d90d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nox/virtualenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 5e3d90d

Please sign in to comment.