Switched to Python 3

We now use venv instead of virtualenv as well
Also the virtualenv is now created with an absolute path
This commit is contained in:
Logan G 2020-10-10 17:51:21 -06:00
parent d29f179072
commit f79bf92d7e
Signed by: logan
GPG key ID: E328528C921E7A7A
2 changed files with 6 additions and 7 deletions

View file

@ -1,7 +1,7 @@
python-pip python3-pip
python-dev python3-dev
python-setuptools python3-setuptools
python-virtualenv python3-venv
git git
libyaml-dev libyaml-dev
nginx nginx

View file

@ -23,9 +23,8 @@ systemctl disable nginx
# If OctoPrint already exists, skip this (for debugging) # If OctoPrint already exists, skip this (for debugging)
if [[ ! -f /srv/octoprint/bin/octoprint ]]; then if [[ ! -f /srv/octoprint/bin/octoprint ]]; then
cd /srv/ || exit 1 python3 -m venv /srv/octoprint || exit 1
virtualenv octoprint || exit 1 source /srv/octoprint/bin/activate || exit 1
source octoprint/bin/activate || exit 1
pip install pip --upgrade pip install pip --upgrade
pip install octoprint || exit 1 pip install octoprint || exit 1
# Fix permissions # Fix permissions