mirror of
https://github.com/YunoHost-Apps/octoprint_ynh.git
synced 2024-09-03 19:46:26 +02:00
Set basic installation to python2 virtualenv
This commit is contained in:
parent
e02664cb33
commit
15d68d5571
1 changed files with 2 additions and 6 deletions
|
@ -54,13 +54,9 @@ chown -R $app: "$home_path"
|
||||||
ynh_script_progression --message="Installing Octoprint in a virtual environment..."
|
ynh_script_progression --message="Installing Octoprint in a virtual environment..."
|
||||||
exec_as $app -H -s /bin/bash -c " \
|
exec_as $app -H -s /bin/bash -c " \
|
||||||
echo 'create the virtual environment' \
|
echo 'create the virtual environment' \
|
||||||
&& python3 -m venv "$final_path" \
|
&& virtualenv "$final_path" \
|
||||||
&& echo 'activate the virtual environment' \
|
|
||||||
&& source "$final_path/bin/activate" \
|
|
||||||
&& echo 'install a required python package' \
|
|
||||||
&& pip install --upgrade wheel \
|
|
||||||
&& echo 'install Octoprint' \
|
&& echo 'install Octoprint' \
|
||||||
&& pip install --upgrade $app \
|
&& "$final_path"/bin/pip install $app \
|
||||||
"
|
"
|
||||||
|
|
||||||
# set default configuration files
|
# set default configuration files
|
||||||
|
|
Loading…
Add table
Reference in a new issue