From 15d68d5571cb72a43c18ff728f9f6cae876751b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20Lothor=C3=A9?= Date: Sun, 26 Jan 2020 19:14:35 +0100 Subject: [PATCH] Set basic installation to python2 virtualenv --- scripts/install | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index f9d32b2..ad112af 100644 --- a/scripts/install +++ b/scripts/install @@ -54,13 +54,9 @@ chown -R $app: "$home_path" ynh_script_progression --message="Installing Octoprint in a virtual environment..." exec_as $app -H -s /bin/bash -c " \ echo 'create the virtual environment' \ - && python3 -m venv "$final_path" \ - && echo 'activate the virtual environment' \ - && source "$final_path/bin/activate" \ - && echo 'install a required python package' \ - && pip install --upgrade wheel \ + && virtualenv "$final_path" \ && echo 'install Octoprint' \ - && pip install --upgrade $app \ + && "$final_path"/bin/pip install $app \ " # set default configuration files