Update to python3
[icn.git] / deploy / metal3-vm / ubuntu_install_requirements.sh
index a72152c..5559c63 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/env bash
-set -ex
+set -eux -o pipefail
 
 # shellcheck disable=SC1091
 source lib/logging.sh
@@ -42,10 +42,11 @@ sudo apt -y install \
   nmap \
   patch \
   psmisc \
-  python-pip \
+  python3-pip \
   wget
 
-
+sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1
+sudo update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
 
 # Install pyenv
 
@@ -70,9 +71,6 @@ if [[ $PATH != *pyenv* ]]; then
   fi
 fi
 
-pyenv install -s 2.7.5
-pyenv versions
-pyenv global 2.7.5
 # There are some packages which are newer in the tripleo repos
 
 # Setup yarn and nodejs repositories
@@ -98,10 +96,7 @@ sudo apt -y install \
   nodejs \
   qemu-kvm \
   libvirt-bin libvirt-clients libvirt-dev \
-  python-ironicclient \
-  python-ironic-inspector-client \
   golang-go \
-  python-lxml \
   unzip \
   yarn \
   genisoimage
@@ -130,11 +125,11 @@ sudo pip install \
   ansible==2.8.2 \
   lolcat \
   yq \
-  virtualbmc \
+  virtualbmc==1.6.0 \
   python-ironicclient \
   python-ironic-inspector-client \
   lxml \
   netaddr \
   requests \
   setuptools \
-  libvirt-python \
+  libvirt-python==5.7.0 \