Debian Codegraph @

.ci/create_test_env.sh

raw symbols SCIP
1 #!/usr/bin/env bash
2
3 # Set up a virtual environment with build and
4 # run-time dependencies for indexed_gzip.
5 #
6
7 set -e
8 set -x
9
10 envdir="$1"
11 thisdir=$(cd $(dirname "$0") && pwd)
12
13 # NUMPY=<some numpy version>
14 if [[ -n "$NUMPY" ]]; then
15 NUMPY="numpy==$NUMPY.*"
16 else
17 NUMPY="numpy"
18 fi
19
20 # NIBABEL=<some nibabel version>
21 if [[ -n "$NIBABEL" ]]; then
22 NIBABEL="nibabel==$NIBABEL.*"
23 else
24 NIBABEL="nibabel"
25 fi
26
27 if [[ "$USING_OS_PYTHON" != "1" ]]; then
28 pip install virtualenv
29 fi
30
31 if [[ "$USING_OS_PYTHON" == "1" ]]; then
32 python"$PYTHON_VERSION" -m venv "$envdir"
33 else
34 python -m venv "$envdir"
35 fi
36
37 source $thisdir/activate_env.sh "$envdir"
38 python -m pip install --upgrade pip
39 pip install --upgrade wheel setuptools build
40 pip install --prefer-binary cython pytest coverage pytest-cov "$NUMPY" "$NIBABEL"