Skip to content

Commit

Permalink
Failure to remove legacy poetry version in 5.0.6-0 rpm - continued2 r…
Browse files Browse the repository at this point in the history
…ockstor#2782

- Fix location of our temp legacy poetry path removal.
- Add echo of PATH used by rest of build.sh.
  • Loading branch information
phillxnet committed Jan 22, 2024
1 parent c3a0de7 commit e811c66
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ if which poetry && poetry --version | grep -q "1.1.15"; then
echo "Poetry version 1.1.15 found - UNINSTALLING"
curl -sSL https://install.python-poetry.org | python3 - --uninstall
rm --force /root/.local/bin/poetry # remove dangling dead link.
# bash substring replace with "" our legacy poetry path.
PATH="${PATH//':/root/.local/bin'/''}"
fi
# bash substring replace with "" our temp legacy poetry path.
PATH="${PATH//':/root/.local/bin'/''}"
echo "build.sh has PATH=$PATH"
# Install Poetry via PIPX as a global app
# https://peps.python.org/pep-0668/#guide-users-towards-virtual-environments
export PIPX_HOME=/opt/pipx # virtual environment location, default ~/.local/pipx
Expand Down

0 comments on commit e811c66

Please sign in to comment.