Skip to content

Commit

Permalink
make sure requirements.txt have utf-8 encoding (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
iLLiCiTiT authored Jul 21, 2023
1 parent 005c66c commit ad64a78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/manage.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ function Build-Ayon($MakeInstaller = $false) {
Write-Color -Text ">>> ", "Building AYON ..." -Color Green, White
$startTime = [int][double]::Parse((Get-Date -UFormat %s))

& "$($env:POETRY_HOME)\bin\poetry" run python -m pip --no-color freeze > "$($repo_root)\build\requirements.txt"
# Make sure output is utf-8
& "$($env:POETRY_HOME)\bin\poetry" run python -m pip --no-color freeze | Out-File -Encoding UTF8 "$($repo_root)\build\requirements.txt"
$out = & "$($env:POETRY_HOME)\bin\poetry" run python setup.py build 2>&1
Set-Content -Path "$($repo_root)\build\build.log" -Value $out
if ($LASTEXITCODE -ne 0)
Expand Down

0 comments on commit ad64a78

Please sign in to comment.