AETHER-1931 Bump python verion to 3
Change-Id: I2f2d9b05116ea70dbf13d04aad804cb2ffab103b
diff --git a/Makefile b/Makefile
index 3ac5e3f..d473186 100644
--- a/Makefile
+++ b/Makefile
@@ -74,7 +74,8 @@
$(M)/setup: | $(M)
sudo $(SCRIPTDIR)/cloudlab-disksetup.sh
- sudo apt update; sudo apt install -y software-properties-common python-pip jq httpie ipvsadm
+ sudo apt update; sudo apt install -y software-properties-common python3 python3-pip jq httpie ipvsadm
+ sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1
touch $@
$(BUILD)/kubespray: | $(M)/setup
@@ -82,7 +83,7 @@
cd $(BUILD); git clone https://github.com/kubernetes-incubator/kubespray.git -b $(KUBESPRAY_VERSION)
$(VENV)/bin/activate: | $(M)/setup
- sudo pip install virtualenv
+ sudo pip3 install virtualenv
virtualenv $(VENV)
$(M)/kubespray-requirements: $(BUILD)/kubespray | $(VENV)/bin/activate