msyrs/scripts/win/install.ps1
2024-11-22 14:42:46 +00:00

16 lines
309 B
PowerShell

# uv pip install maturin
try {
maturin --help > $null
} catch {
Write-Error "Failed to run maturin --help: $_"
exit 1
}
# copy ./src/msyrs.pyi to ./msyrs.pyi
Copy-Item -Path ./src/msyrs.pyi -Destination ./msyrs.pyi
maturin develop --release
# delete the pyi file
Remove-Item -Path ./msyrs.pyi