From 36ca2cf37f42e09795e365b813d55c9c8a456930 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 30 Nov 2016 19:53:51 -0800 Subject: [PATCH] Create the virtual envs in a subdir, set owner to vagrant user --- vagrant/centos-7-x64/bootstrap.sh | 13 +++++++------ vagrant/debian-8-x64/bootstrap.sh | 11 +++++++---- vagrant/fedora-24-x64/bootstrap.sh | 14 +++++++------- vagrant/ubuntu-1404-x64/bootstrap.sh | 11 +++++++---- vagrant/ubuntu-1604-x64/bootstrap.sh | 12 +++++++----- 5 files changed, 35 insertions(+), 26 deletions(-) diff --git a/vagrant/centos-7-x64/bootstrap.sh b/vagrant/centos-7-x64/bootstrap.sh index 681858f5..d513fe0f 100644 --- a/vagrant/centos-7-x64/bootstrap.sh +++ b/vagrant/centos-7-x64/bootstrap.sh @@ -22,9 +22,10 @@ yum -y install python34u python34u-tools python34u-devel yum -y install python35u python35u-tools python35u-devel -# Set up virtual environments for each Python where the Phoenix builds will be done -virtualenv --python=python2.7 Py27 -pyvenv-3.4 Py34 -pyvenv-3.5 Py35 - - +# Set up virtual environments for each Pytho# Set up virtual environments for each Python where the Phoenix builds will be +# done. set them to the vagrant user so the venv's can be updated by pip later. +mkdir venvs +virtualenv --python=python2.7 venvs/Py27 +pyvenv-3.4 venvs/Py34 +pyvenv-3.5 venvs/Py35 +chown -R vagrant:vagrant venvs diff --git a/vagrant/debian-8-x64/bootstrap.sh b/vagrant/debian-8-x64/bootstrap.sh index e6979110..64297f80 100644 --- a/vagrant/debian-8-x64/bootstrap.sh +++ b/vagrant/debian-8-x64/bootstrap.sh @@ -16,8 +16,11 @@ apt-get install -y python2.7 python2.7-dev libpython2.7-dev python-virtualenv apt-get install -y python3.4 python3.4-dev libpython3.4-dev python3.4-venv #apt-get install -y python3.5 python3.5-dev libpython3.5-dev python3.5-venv -# Set up virtual environments for each Python where the Phoenix builds will be done -virtualenv --python=python2.7 Py27 -pyvenv-3.4 Py34 -#pyvenv-3.5 Py35 +# Set up virtual environments for each Python where the Phoenix builds will be +# done. set them to the vagrant user so the venv's can be updated by pip later. +mkdir venvs +virtualenv --python=python2.7 venvs/Py27 +pyvenv-3.4 venvs/Py34 +#pyvenv-3.5 venvs/Py35 +chown -R vagrant:vagrant venvs diff --git a/vagrant/fedora-24-x64/bootstrap.sh b/vagrant/fedora-24-x64/bootstrap.sh index 8d5e0e32..b1c1164f 100644 --- a/vagrant/fedora-24-x64/bootstrap.sh +++ b/vagrant/fedora-24-x64/bootstrap.sh @@ -20,10 +20,10 @@ dnf -y install python python-tools python-devel python-virtualenv #dnf -y install python34 python34-tools python34-devel dnf -y install python3 python3-tools python3-devel - -# Set up virtual environments for each Python where the Phoenix builds will be done -virtualenv --python=python2.7 Py27 -#pyvenv-3.4 Py34 -pyvenv-3.5 Py35 - - +# Set up virtual environments for each Python where the Phoenix builds will be +# done. set them to the vagrant user so the venv's can be updated by pip later. +mkdir venvs +virtualenv --python=python2.7 venvs/Py27 +#pyvenv-3.4 venvs/Py34 +pyvenv-3.5 venvs/Py35 +chown -R vagrant:vagrant venvs diff --git a/vagrant/ubuntu-1404-x64/bootstrap.sh b/vagrant/ubuntu-1404-x64/bootstrap.sh index 06f4374c..c8781d43 100644 --- a/vagrant/ubuntu-1404-x64/bootstrap.sh +++ b/vagrant/ubuntu-1404-x64/bootstrap.sh @@ -17,8 +17,11 @@ apt-get install -y python2.7 python2.7-dev libpython2.7-dev python-virtualenv apt-get install -y python3.4 python3.4-dev libpython3.4-dev python3.4-venv apt-get install -y python3.5 python3.5-dev libpython3.5-dev python3.5-venv -# Set up virtual environments for each Python where the Phoenix builds will be done -virtualenv --python=python2.7 Py27 -pyvenv-3.4 Py34 -pyvenv-3.5 Py35 +# Set up virtual environments for each Python where the Phoenix builds will be +# done. set them to the vagrant user so the venv's can be updated by pip later. +mkdir venvs +virtualenv --python=python2.7 venvs/Py27 +pyvenv-3.4 venvs/Py34 +pyvenv-3.5 venvs/Py35 +chown -R vagrant:vagrant venvs diff --git a/vagrant/ubuntu-1604-x64/bootstrap.sh b/vagrant/ubuntu-1604-x64/bootstrap.sh index e508bfa8..85ba9319 100644 --- a/vagrant/ubuntu-1604-x64/bootstrap.sh +++ b/vagrant/ubuntu-1604-x64/bootstrap.sh @@ -17,8 +17,10 @@ apt-get install -y python2.7 python2.7-dev libpython2.7-dev python-virtualenv #apt-get install -y python3.4 python3.4-dev libpython3.4-dev python3.4-venv apt-get install -y python3.5 python3.5-dev libpython3.5-dev python3.5-venv -# Set up virtual environments for each Python where the Phoenix builds will be done -virtualenv --python=python2.7 Py27 -#pyvenv-3.4 Py34 -pyvenv-3.5 Py35 - +# Set up virtual environments for each Python where the Phoenix builds will be +# done. set them to the vagrant user so the venv's can be updated by pip later. +mkdir venvs +virtualenv --python=python2.7 venvs/Py27 +#pyvenv-3.4 venvs/Py34 +pyvenv-3.5 venvs/Py35 +chown -R vagrant:vagrant venvs