-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·22 lines (16 loc) · 688 Bytes
/
install.sh
File metadata and controls
executable file
·22 lines (16 loc) · 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
die () { >&2 printf %s\\n "$1"; exit 1; }
[ -z "$VIRTUAL_ENV" ] && die "error: you don't seem to be in a python virtualenv."
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")"; pwd -P)"
cd "$HERE"
python -m ensurepip --upgrade
python -m pip install 'wheel==0.37.1' -r requirements.txt
python -m pip install -e . -e libsentrykube/
# --install-hooks is needed so that pre-commit adds this dir's config
# to the hook that it installs; we have multiple pre-commit configs
pre-commit install --install-hooks
if [[ "${SENTRY_KUBE_INSTALL_GIT_HOOKS:-}" != "0" ]]; then
echo 'Installing git hooks.'
cd "$(git rev-parse --show-toplevel)/.git/hooks"
ln -sf git-hooks/* ./
fi