mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-08-24 10:05:29 -05:00
add -d for Install.ps1 (#11062)
This commit is contained in:
+22
-1
@@ -1,5 +1,16 @@
|
||||
param(
|
||||
[Parameter(HelpMessage="install development dependencies")]
|
||||
[switch]$d = $False
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
$extras = @()
|
||||
if ($d)
|
||||
{
|
||||
$extras += "dev"
|
||||
}
|
||||
|
||||
if ([Environment]::Is64BitOperatingSystem -eq $false)
|
||||
{
|
||||
Write-Output "Chia requires a 64-bit Windows installation"
|
||||
@@ -49,11 +60,21 @@ if ($openSSLVersion -lt 269488367)
|
||||
Write-Output "Anything before 1.1.1n is vulnerable to CVE-2022-0778."
|
||||
}
|
||||
|
||||
if ($extras.length -gt 0)
|
||||
{
|
||||
$extras_cli = $extras -join ","
|
||||
$extras_cli = "[$extras_cli]"
|
||||
}
|
||||
else
|
||||
{
|
||||
$extras_cli = ""
|
||||
}
|
||||
|
||||
py -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 . --extra-index-url https://pypi.chia.net/simple/
|
||||
venv\scripts\pip install --editable ".$extras_cli" --extra-index-url https://pypi.chia.net/simple/
|
||||
|
||||
Write-Output ""
|
||||
Write-Output "Chia blockchain .\Install.ps1 complete."
|
||||
|
||||
Reference in New Issue
Block a user