Skip to content

Commit

Permalink
fix: windows
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed Nov 4, 2024
1 parent e4e28cb commit 122835a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nox/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,12 @@ def run_script_mode(envdir: Path, reuse: bool, dependencies: list[str]) -> NoRet
)
venv.create()
venv.env["NOX_SCRIPT_MODE"] = "none"
subprocess.run(["uv", "pip", "install", *dependencies], env=venv.env, check=True)
cmd = ["uv", "pip", "install"] if venv.venv_backend == "uv" else ["pip", "install"]
subprocess.run([*cmd, *dependencies], env=venv.env, check=True)
if sys.platform.startswith("win"):
raise SystemExit(
subprocess.run(
sys.argv,
["nox", sys.argv[1:]],
env=venv.env,
stdout=None,
stderr=None,
Expand Down

0 comments on commit 122835a

Please sign in to comment.