Skip to content

Commit 1c2d4e4

Browse files
committed
fix: suppress uv venv output on Windows quiet install and use correct env var syntax in completion message
1 parent bb1928e commit 1c2d4e4

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

install.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ if (Test-Path $VenvPy) {
8585
Write-Msg " ✓ venv already exists"
8686
} else {
8787
Write-Msg " → Creating Python $MinPython venv"
88-
& $UvExe venv --python $MinPython (Join-Path $Prefix "venv")
88+
$venvArgs = @("venv", "--python", $MinPython)
89+
if ($Quiet) { $venvArgs += "--quiet" }
90+
& $UvExe @venvArgs (Join-Path $Prefix "venv")
8991
if ($LASTEXITCODE -ne 0) {
9092
Write-Error "Failed to create Python $MinPython venv — see uv error above"
9193
exit $LASTEXITCODE

setup.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,12 @@ def main() -> None:
315315
else:
316316
print(f' source "{prefix / "env.sh"}"')
317317
print()
318-
print(f' Then: "${args.python_env}" /path/to/script.py')
319-
print(f' "${args.uv_env}" run --project /path/to/app script.py')
318+
if _IS_WINDOWS:
319+
print(f' Then: $env:{args.python_env} /path/to/script.py')
320+
print(f' $env:{args.uv_env} run --project /path/to/app script.py')
321+
else:
322+
print(f' Then: "${args.python_env}" /path/to/script.py')
323+
print(f' "${args.uv_env}" run --project /path/to/app script.py')
320324
print()
321325

322326

0 commit comments

Comments
 (0)