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 (#19369)
* ensure poetry version via install scripts * Update Setup-poetry.ps1
This commit is contained in:
@@ -102,10 +102,7 @@ foreach ($extra in $extras)
|
||||
$extras_cli += $extra
|
||||
}
|
||||
|
||||
if (-not (Get-Item -ErrorAction SilentlyContinue ".penv/Scripts/poetry.exe").Exists)
|
||||
{
|
||||
./Setup-poetry.ps1 -pythonVersion "$pythonVersion"
|
||||
}
|
||||
|
||||
.penv/Scripts/poetry env use $(py -"$pythonVersion" -c 'import sys; print(sys.executable)')
|
||||
.penv/Scripts/poetry install @extras_cli
|
||||
|
||||
+5
-2
@@ -6,7 +6,10 @@ param(
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
if (-not (Get-Item -ErrorAction SilentlyContinue ".penv/Scripts/").Exists)
|
||||
{
|
||||
py -$pythonVersion -m venv .penv
|
||||
.penv/Scripts/python -m pip install --upgrade pip setuptools wheel
|
||||
.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 --requirement requirements-poetry.txt
|
||||
.penv/Scripts/python -m pip install --upgrade --requirement requirements-poetry.txt
|
||||
|
||||
@@ -168,9 +168,7 @@ if [ "$OPENSSL_VERSION_INT" -lt "269488367" ]; then
|
||||
echo "Your OS may have patched OpenSSL and not updated the version to 1.1.1n"
|
||||
fi
|
||||
|
||||
if [ ! -f .penv/bin/poetry ]; then
|
||||
./setup-poetry.sh -c "${INSTALL_PYTHON_PATH}"
|
||||
fi
|
||||
|
||||
.penv/bin/poetry env use "${INSTALL_PYTHON_PATH}"
|
||||
# shellcheck disable=SC2086
|
||||
|
||||
+4
-2
@@ -30,7 +30,9 @@ while getopts c:h flag; do
|
||||
esac
|
||||
done
|
||||
|
||||
if [ ! -d .penv/bin/ ]; then
|
||||
"$PYTHON_COMMAND" -m venv .penv
|
||||
.penv/bin/python -m pip install --upgrade pip setuptools wheel
|
||||
.penv/bin/python -m pip install --upgrade pip
|
||||
fi
|
||||
# TODO: maybe make our own zipapp/shiv/pex of poetry and download that?
|
||||
.penv/bin/python -m pip install --requirement requirements-poetry.txt
|
||||
.penv/bin/python -m pip install --upgrade --requirement requirements-poetry.txt
|
||||
|
||||
Reference in New Issue
Block a user