$ErrorActionPreference = "Stop" $Root = Split-Path -Parent (Split-Path -Parent $MyInvocation.MyCommand.Path) Set-Location $Root $Python = "python" $Requirements = Join-Path $Root "requirements.txt" $Wheelhouse = Join-Path $Root "vendor\wheels" New-Item -ItemType Directory -Force -Path $Wheelhouse | Out-Null Write-Host "[download] saving packages to $Wheelhouse" & $Python -m pip download -r $Requirements -d $Wheelhouse