File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments