Skip to content

Commit a8da14c

Browse files
committed
chore(scripts): add constrained install helper
1 parent a676083 commit a8da14c

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
ROOT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)"
5+
6+
cd "$ROOT_DIR"
7+
8+
if [[ ! -f "constraints.txt" ]]; then
9+
echo "constraints.txt not found; aborting." >&2
10+
exit 1
11+
fi
12+
13+
pip install -r requirements.txt -c constraints.txt
14+

0 commit comments

Comments
 (0)