[Vagrant] Fix vagrant build installing all required Python packages

This commit is contained in:
Gijs Noorlander
2020-06-06 13:41:02 +02:00
parent d485a5b785
commit 7cd26bdf90
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -17,6 +17,8 @@ Vagrant.configure("2") do |config|
# Every Vagrant development environment requires a box. You can search for
# boxes at https://vagrantcloud.com/search.
config.vm.box = "bento/ubuntu-18.04"
# TD-er: No hyperv version for "bento/ubuntu-20.04" available yet.
#config.vm.box = "bento/ubuntu-20.04"
# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
@@ -69,7 +71,7 @@ Vagrant.configure("2") do |config|
# documentation for more information about their specific syntax and use.
config.vm.provision "shell", inline: <<-SHELL
apt-get update
apt-get install -y python-minimal virtualenv build-essential zip binutils software-properties-common
apt-get install -y python3-minimal virtualenv build-essential zip binutils software-properties-common
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade
add-apt-repository ppa:deadsnakes/ppa
+2 -2
View File
@@ -41,9 +41,9 @@ fi
# Activate Python virtual environment and install/upgrade packages
source ${VENV}/bin/activate
pip install -U platformio
#pip install -r ${SRC}/docs/requirements.txt
pip install -r ${SRC}/requirements.txt
pip install -U platformio
# Update platformio
cd ${SRC}