From fccdceda633389200c84425fad4b9dca33b5b3a6 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sun, 15 Oct 2023 21:48:29 +0300 Subject: [PATCH] limnoria-install.bash: copy the script from VPS --- bash/limnoria-install.bash | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 bash/limnoria-install.bash diff --git a/bash/limnoria-install.bash b/bash/limnoria-install.bash new file mode 100755 index 0000000..7ae3f41 --- /dev/null +++ b/bash/limnoria-install.bash @@ -0,0 +1,23 @@ +#!/usr/bin/env bash + +# This is just a quick script to install Limnoria alongside optional +# dependencies and dependencies of the plugins or repositories I use. + +set -x + +PYTHON=python3 + +mkdir -p ~/venv +$PYTHON -m venv ~/venv +. ~/venv/bin/activate +$PYTHON -m pip install git+https://github.com/ProgVal/Limnoria.git@testing --upgrade +$PYTHON -m pip install -r https://github.com/progval/Limnoria/raw/testing/requirements.txt --upgrade +$PYTHON -m pip install -r https://github.com/progval/Supybot-plugins/raw/master/requirements.txt --upgrade +$PYTHON -m pip install -r https://github.com/jlu5/SupyPlugins/raw/master/requirements.txt --upgrade +$PYTHON -m pip install -r https://github.com/oddluck/limnoria-plugins/raw/master/requirements.txt --upgrade + +# Removes duplicates from $PATH. Copied from https://unix.stackexchange.com/a/14896 +PATH=$(echo "$PATH" | awk -v RS=':' -v ORS=":" '!a[$1]++{if (NR > 1) printf ORS; printf $a[$1]}') +printf "Remember to apply the following somewhere appropiate:\nPATH=$PATH\n" + +set +x