Skip to content

Commit

Permalink
Switch back to pip with system-wide forced installation
Browse files Browse the repository at this point in the history
  • Loading branch information
framctr committed Sep 14, 2024
1 parent fdf8d38 commit e290481
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/ansible/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ set -e
# of the script
ensure_nanolayer nanolayer_location "v0.5.0"

$nanolayer_location install apt-get pipx,python3-dev
$nanolayer_location install apt-get pip,python3-dev

# --break-system-packages required by latest Debian-based distros to install the package system-wide
if [ "$VERSION" != "latest" ] ; then
pipx install "${PACKAGE}"=="${VERSION}"
pip install "${PACKAGE}"=="${VERSION}" --break-system-packages
else
pipx install "$PACKAGE"
pip install "$PACKAGE" --break-system-packages
fi

echo 'Done!'

0 comments on commit e290481

Please sign in to comment.