Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions scripts/dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,18 @@

set -euo pipefail

# Use the python from PATH (set by setup-python)
PYTHON_BIN="${PYTHON_BIN:-python}"

if ! [ -x "$(command -v poetry)" ]; then
if ! [ -x "$(command -v pipx)" ]; then
python -m pip install --user pipx --isolated
python -m pipx ensurepath
$PYTHON_BIN -m pip install --user pipx --isolated
$PYTHON_BIN -m pipx ensurepath
fi
pipx install poetry
pipx install poetry --python $PYTHON_BIN
fi

# Ensure poetry uses the correct python environment
poetry env use $PYTHON_BIN

poetry self add poetry-plugin-lambda-build@2.1.0 poetry-plugin-export@1.9.0