diff --git a/scripts/install b/scripts/install index 82e5b36..d1bf523 100755 --- a/scripts/install +++ b/scripts/install @@ -151,10 +151,10 @@ ynh_script_progression --message="Initializing Python virtualenv..." --weight=20 pushd $final_path || ynh_die chown -R $app:$app $final_path sudo -u $app python3 -m venv $final_path/venv - sudo -u $app $final_path/venv/bin/python -m pip install -U wheel pip setuptools - sudo -u $app $final_path/venv/bin/python -m pip install -U --requirement $final_path/requirements.txt - sudo -u $app $final_path/venv/bin/python -m pip install -U --requirement $final_path/requirements-setup.txt - sudo -u $app $final_path/venv/bin/python -m pip install -U --requirement $final_path/requirements-ynh.txt + sudo -u $app $final_path/venv/bin/pip --cache-dir $final_path/.cache/pip install -U wheel pip --cache-dir $final_path/.cache/pip setuptools + sudo -u $app $final_path/venv/bin/pip --cache-dir $final_path/.cache/pip install -U --requirement $final_path/requirements.txt + sudo -u $app $final_path/venv/bin/pip --cache-dir $final_path/.cache/pip install -U --requirement $final_path/requirements-setup.txt + sudo -u $app $final_path/venv/bin/pip --cache-dir $final_path/.cache/pip install -U --requirement $final_path/requirements-ynh.txt chown -R root:root $final_path popd || ynh_die diff --git a/scripts/upgrade b/scripts/upgrade index 7716d18..dd2177c 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -100,10 +100,10 @@ ynh_script_progression --message="Upgrading Python virtualenv..." --weight=2 pushd $final_path || ynh_die chown -R $app:$app $final_path sudo -u $app python3 -m venv $final_path/venv - sudo -u $app $final_path/venv/bin/python -m pip install -U wheel pip setuptools - sudo -u $app $final_path/venv/bin/python -m pip install -U --requirement $final_path/requirements.txt - sudo -u $app $final_path/venv/bin/python -m pip install -U --requirement $final_path/requirements-setup.txt - sudo -u $app $final_path/venv/bin/python -m pip install -U --requirement $final_path/requirements-ynh.txt + sudo -u $app $final_path/venv/bin/pip --cache-dir $final_path/.cache/pip install -U wheel pip --cache-dir $final_path/.cache/pip setuptools + sudo -u $app $final_path/venv/bin/pip --cache-dir $final_path/.cache/pip install -U --requirement $final_path/requirements.txt + sudo -u $app $final_path/venv/bin/pip --cache-dir $final_path/.cache/pip install -U --requirement $final_path/requirements-setup.txt + sudo -u $app $final_path/venv/bin/pip --cache-dir $final_path/.cache/pip install -U --requirement $final_path/requirements-ynh.txt chown -R root:root $final_path popd || ynh_die