Skip to content

Commit

Permalink
Kyle's Install.ps1 fix for pwsh 7.4 (#17445)
Browse files Browse the repository at this point in the history
fix `Install.ps1` for pwsh 7.4 (#17417)

* fix `Install.ps1` for pwsh 7.4

* fixup

* -not

Co-authored-by: Kyle Altendorf <sda@fstab.net>
  • Loading branch information
AmineKhaldi and altendky committed Jan 31, 2024
1 parent 880c119 commit 1070ce8
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions Install.ps1
Expand Up @@ -15,10 +15,10 @@ if ($d)
$extras += "dev"
}

$editable_cli = "--editable"
if ($i)
$pip_parameters = @()
if (-not $i)
{
$editable_cli = ""
$pip_parameters += "--editable"
}

if ([Environment]::Is64BitOperatingSystem -eq $false)
Expand Down Expand Up @@ -103,18 +103,14 @@ if ($openSSLVersion -lt 269488367)
if ($extras.length -gt 0)
{
$extras_cli = $extras -join ","
$extras_cli = "[$extras_cli]"
}
else
{
$extras_cli = ""
$pip_parameters += ".[$extras_cli]"
}

py -$pythonVersion -m venv venv

venv\scripts\python -m pip install --upgrade pip setuptools wheel
venv\scripts\pip install --extra-index-url https://pypi.chia.net/simple/ miniupnpc==2.2.2
venv\scripts\pip install $editable_cli ".$extras_cli" --extra-index-url https://pypi.chia.net/simple/
& venv\scripts\pip install @pip_parameters --extra-index-url https://pypi.chia.net/simple/

if ($p)
{
Expand Down

0 comments on commit 1070ce8

Please sign in to comment.