Skip to content

Commit

Permalink
Set POETRY_HOME before running install-poetry.py
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
br3ndonland committed Jul 17, 2021
1 parent 762d935 commit 884d475
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion script/strap-after-setup
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ if command -v python3 &>/dev/null; then
python3 -m pipx ensurepath
fi
if ! command -v poetry &>/dev/null; then
curl -fsSL $RAW/python-poetry/poetry/HEAD/install-poetry.py | python3 -
export POETRY_HOME="$HOME/.local"
curl -fsS -o "$HOME/install-poetry.py" \
$RAW/python-poetry/poetry/HEAD/install-poetry.py
python3 "$HOME/install-poetry.py"
fi
"$HOME"/.dotfiles/script/python-user-packages.sh
else
Expand Down

0 comments on commit 884d475

Please sign in to comment.