Debian Codegraph @

scripts/install

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`. -e
2
3 # Use the Python executable provided from the `-p` option, or a default.
4 [scip-shell system . . `[`. "$1" = "-p" ] && PYTHON=$2 || PYTHON="python3"
5
6 REQUIREMENTS="requirements.txt"
7 VENV="venv"
8
9 set -x
10
11 if [scip-shell system . . `[`. -z "$GITHUB_ACTIONS" ]; then
12 "$PYTHON" -m venv "$VENV"
13 PIP="$VENV/bin/pip"
14 else
15 PIP="pip"
16 fi
17
18 "$PIP" install -U pip
19 "$PIP" install -r "$REQUIREMENTS"