Skip to content

Instantly share code, notes, and snippets.

@originalsouth
Last active March 5, 2024 08:03
Show Gist options
  • Save originalsouth/d45d0b424bb9dddb77de2740797dabf3 to your computer and use it in GitHub Desktop.
Save originalsouth/d45d0b424bb9dddb77de2740797dabf3 to your computer and use it in GitHub Desktop.
Install OpenKAT Python
#!/usr/bin/env zsh
DIR=${0:a:h}
PREFIX="nl-kat-coordination"
[ -d "$DIR/python" ] && rm -rf "$DIR/python"
python -m venv "$DIR/python"
source $DIR/python/bin/activate
pip install --upgrade pip
targets=(
"pynvim"
"autopep8"
"pyright"
"pylint"
"pytest"
"xtdb"
)
for target in $targets
do
pip install $target
done
targets=(
"boefjes"
"bytes"
"octopoes"
# "keiko"
# "mula"
# "rocky"
)
for target in $targets
do
for req in $(find $DIR/$PREFIX/$target -name "requirements*")
do
pip install -r <(grep -v "git+https://" $req)
pip install -r <(grep "git+https://" $req)
done
pip install "$DIR/$PREFIX/$target"
done
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment