Files
Stock-trading-programming/scripts/download_dependencies.ps1
T

14 lines
426 B
PowerShell

$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