diff --git a/manifest.toml b/manifest.toml index 466c722..dadc57e 100644 --- a/manifest.toml +++ b/manifest.toml @@ -58,4 +58,19 @@ ram.runtime = "50M" main.url = "/" [resources.apt] - packagess = "git, build-essential, libxslt-dev, python3-dev, python3-venv, python3-cffi, python3-babel,zlib1g-dev, libffi-dev, libssl-dev, python3-lxml, uwsgi, uwsgi-plugin-python3, shellcheck" + packages = [ + "git", + "build-essential", + "libxslt-dev", + "python3-dev", + "python3-venv", + "python3-pip", + "python3-cffi", + "python3-babel,zlib1g-dev", + "libffi-dev", + "libssl-dev", + "python3-lxml", + "uwsgi", + "uwsgi-plugin-python3", + "shellcheck", + ] diff --git a/scripts/install b/scripts/install index 6f46933..f08e713 100644 --- a/scripts/install +++ b/scripts/install @@ -37,9 +37,9 @@ ynh_add_nginx_config "path_no_root" ynh_script_progression --message="Installing Searx..." --weight=2 pushd $install_dir - python3 -m venv venv - venv/bin/pip3 install -U pip setuptools wheel pyyaml --no-cache-dir - venv/bin/pip3 install --requirement $install_dir/requirements-ynh.txt --no-cache-dir + python3 -m venv --upgrade "$install_dir/venv" + ynh_exec_as "$app" venv/bin/pip3 install -U pip setuptools wheel pyyaml --no-cache-dir + ynh_exec_as "$app" venv/bin/pip3 install --requirement $install_dir/requirements-ynh.txt --no-cache-dir popd #=================================================