Skip to content

Commit e593c48

Browse files
committed
Vagrant: Set Python virtual env to Python 3.8
1 parent 2658491 commit e593c48

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tools/vagrant/Vagrantfile

+2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,10 @@ Vagrant.configure("2") do |config|
6868
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
6969
# documentation for more information about their specific syntax and use.
7070
config.vm.provision "shell", inline: <<-SHELL
71+
add-apt-repository ppa:deadsnakes/ppa
7172
apt-get update
7273
apt-get install -y python-minimal virtualenv build-essential zip binutils
74+
apt-get install -y python3.8 python3.8-dev python3-pip
7375
SHELL
7476
# Clone the repo as the default user. (privileged: false)
7577
config.vm.provision "shell", run: "always", privileged: false do |s|

tools/vagrant/bootstrap.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VENV=~/.venv/python2.7
1+
VENV=~/.venv/python3.8
22
SRC=~/GitHub/TD-er/MCVE_ESPxx
33
REPO=https://github.com/TD-er/MCVE_ESPxx.git
44
BRANCH=master
@@ -30,7 +30,7 @@ done
3030
# If virtualenv does not exist, make it.
3131
if [ ! -d ${VENV} ]; then
3232
mkdir -p ${VENV}
33-
virtualenv -p python2.7 ${VENV}
33+
virtualenv -p python3.8 ${VENV}
3434
fi
3535

3636
# if repository directory does not exist, make it and clone repository

0 commit comments

Comments
 (0)