mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-08-24 02:24:23 -05:00
* ensure poetry version via install scripts * Update Setup-poetry.ps1
16 lines
458 B
PowerShell
16 lines
458 B
PowerShell
param(
|
|
[Parameter(Mandatory, HelpMessage="Python version")]
|
|
[string]
|
|
$pythonVersion
|
|
)
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
|
|
if (-not (Get-Item -ErrorAction SilentlyContinue ".penv/Scripts/").Exists)
|
|
{
|
|
py -$pythonVersion -m venv .penv
|
|
.penv/Scripts/python -m pip install --upgrade pip
|
|
}
|
|
# TODO: maybe make our own zipapp/shiv/pex of poetry and download that?
|
|
.penv/Scripts/python -m pip install --upgrade --requirement requirements-poetry.txt
|