diff options
Diffstat (limited to 'share/hoarder/grab-site/unix/linux/debian/install')
-rwxr-xr-x | share/hoarder/grab-site/unix/linux/debian/install | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/share/hoarder/grab-site/unix/linux/debian/install b/share/hoarder/grab-site/unix/linux/debian/install index be9c074..a67961f 100755 --- a/share/hoarder/grab-site/unix/linux/debian/install +++ b/share/hoarder/grab-site/unix/linux/debian/install @@ -14,16 +14,17 @@ LIB="$2" # Requirements trashman_apt_install_packages git build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev libffi-dev libxml2-dev libxslt1-dev libre2-dev pkg-config -# Setup pyenv and grab-site -mkdir -p $HOME/.local/bin $HOME/.local/share -cd $HOME/.local/bin -wget https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer -chmod +x pyenv-installer -./pyenv-installer -$HOME/.pyenv/bin/pyenv install 3.7.0 -$HOME/.pyenv/versions/3.7.0/bin/python -m venv $HOME/.local/share/gs-venv -$HOME/.local/share/gs-venv/bin/pip install --process-dependency-links --no-binary --upgrade git+https://github.com/ludios/grab-site +# Install pyenv +hoarder install pyenv || exit 1 + +# Install python and create venv +mkdir -p $HOME/.local/share +$HOME/.pyenv/bin/pyenv install 3.7.8 || exit 1 +$HOME/.pyenv/versions/3.7.8/bin/python -m venv $HOME/.local/share/grab-site-venv || exit 1 + +# Install grab-site +$HOME/.local/share/grab-site-venv/bin/pip install --no-binary lxml --upgrade git+https://github.com/ArchiveTeam/grab-site || exit 1 echo "Add this to your ~/.bashrc or ~/.zshrc and then restart your shell (e.g. by opening a new terminal tab/window):" echo "" -echo 'PATH="$PATH:'$HOME/.local/share/gs-venv/bin'"' +echo 'PATH="$PATH:'$HOME/.local/share/grab-site-venv/bin'"' |