mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
add poetry to path before building
This commit is contained in:
parent
de12d41666
commit
2859aca17c
1 changed files with 3 additions and 1 deletions
|
|
@ -157,11 +157,12 @@ Write-Host "Reading Poetry ... " -NoNewline
|
||||||
if (-not (Test-Path -PathType Container -Path "$($env:USERPROFILE)\.poetry\bin")) {
|
if (-not (Test-Path -PathType Container -Path "$($env:USERPROFILE)\.poetry\bin")) {
|
||||||
Write-Host "NOT FOUND" -ForegroundColor Yellow
|
Write-Host "NOT FOUND" -ForegroundColor Yellow
|
||||||
Install-Poetry
|
Install-Poetry
|
||||||
|
|
||||||
Write-Host "INSTALLED" -ForegroundColor Cyan
|
Write-Host "INSTALLED" -ForegroundColor Cyan
|
||||||
} else {
|
} else {
|
||||||
Write-Host "OK" -ForegroundColor Green
|
Write-Host "OK" -ForegroundColor Green
|
||||||
}
|
}
|
||||||
|
$env:PATH = "$($env:PATH);$($env:USERPROFILE)\.poetry\bin"
|
||||||
|
|
||||||
Write-Host ">>> " -NoNewline -ForegroundColor green
|
Write-Host ">>> " -NoNewline -ForegroundColor green
|
||||||
Write-Host "Cleaning cache files ... " -NoNewline
|
Write-Host "Cleaning cache files ... " -NoNewline
|
||||||
|
|
@ -172,6 +173,7 @@ Write-Host "OK" -ForegroundColor green
|
||||||
|
|
||||||
Write-Host ">>> " -NoNewline -ForegroundColor green
|
Write-Host ">>> " -NoNewline -ForegroundColor green
|
||||||
Write-Host "Building OpenPype ..."
|
Write-Host "Building OpenPype ..."
|
||||||
|
|
||||||
$out = & poetry run python setup.py build 2>&1
|
$out = & poetry run python setup.py build 2>&1
|
||||||
if ($LASTEXITCODE -ne 0)
|
if ($LASTEXITCODE -ne 0)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue