Skip to content
Open
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
12 changes: 3 additions & 9 deletions ansible/install_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,9 @@ sudo apt-get update

# Install python dependencies
echo Installing Python dependencies
sudo apt-get install -y python3-distutils python3-testresources python3-pip
python3 -m pip install -U pip

# Update setuptool version if it is higher than 65
ver=$(python3 -m pip show setuptools | awk '/^Version: / {sub("^Version: ", ""); print}' | cut -d. -f1)
if [ "$ver" -gt 65 ]; then
echo Downgrade setuptools version to 65
python3 -m pip install setuptools==65.0.0
fi
sudo apt-get install -y python3-distutils
sudo apt-get install -y python3-pip
python3 -m pip install -U pip setuptools

# Install ansible if not present
if [ "`which ansible`" != "" ]; then
Expand Down