Skip to content

Commit 884d475

Browse files
committed
Set POETRY_HOME before running install-poetry.py
1d8eee0 Commit 1d8eee0 updated the Poetry configuration for install-poetry.py, the new install script. This commit provides a minor follow-up update. When bootstrap.sh and strap-after-setup run for the first time, the exports in .zshrc may not be loaded yet. Sourcing the .zshrc is not an ideal solution in cases in which the shell has not yet been set to Zsh. Instead, the `POETRY_HOME` export will be set before installing Poetry.
1 parent 762d935 commit 884d475

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

script/strap-after-setup

+4-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ if command -v python3 &>/dev/null; then
2626
python3 -m pipx ensurepath
2727
fi
2828
if ! command -v poetry &>/dev/null; then
29-
curl -fsSL $RAW/python-poetry/poetry/HEAD/install-poetry.py | python3 -
29+
export POETRY_HOME="$HOME/.local"
30+
curl -fsS -o "$HOME/install-poetry.py" \
31+
$RAW/python-poetry/poetry/HEAD/install-poetry.py
32+
python3 "$HOME/install-poetry.py"
3033
fi
3134
"$HOME"/.dotfiles/script/python-user-packages.sh
3235
else

0 commit comments

Comments
 (0)