Skip to content

Commit 5054f13

Browse files
committed
tweak install script
1 parent 1e9ab0c commit 5054f13

File tree

1 file changed

+39
-2
lines changed

1 file changed

+39
-2
lines changed

.ci/ci-01-install.sh

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,47 @@
11
#!/bin/bash
22
set -euxo pipefail
3-
export CPATH=$SUNDBASE/include:$CPATH
3+
export CPATH=$SUNDBASE/include:${CPATH:-}
44
export LIBRARY_PATH=$SUNDBASE/lib
55
export LD_LIBRARY_PATH=$SUNDBASE/lib
66
source /opt-3/cpython-v3.*-apt-deb/bin/activate
7-
python3 -m pip install --cache-dir $CACHE_ROOT/pip_cache --user -e .[all]
7+
8+
INSTALL_PIP_FLAGS="--cache-dir $CACHE_ROOT/pip_cache ${INSTALL_PIP_FLAGS:-}" # --user
9+
for pypkg in pyodeint pygslodeiv2 pycompilation pycodeexport pycvodes pyodesys; do
10+
case $pypkg in
11+
pyodeint)
12+
pypkg_fqn="git+https://github.com/bjodah/pyodeint@sep21#egg=pyodeint"
13+
;;
14+
pygslodeiv2)
15+
pypkg_fqn="git+https://github.com/bjodah/pygslodeiv2@cython-except-plus#egg=pygslodeiv2"
16+
;;
17+
pycompilation)
18+
pypkg_fqn="git+https://github.com/bjodah/pycompilation@use-importlib-rather-than-imp#egg=pycompilation"
19+
;;
20+
pycodeexport)
21+
pypkg_fqn="git+https://github.com/bjodah/pycodeexport@qulify-extension-name-and-new-ci#egg=pycodeexport"
22+
;;
23+
pycvodes)
24+
pypkg_fqn="git+https://github.com/bjodah/pycvodes@may21#egg=pycvodes"
25+
;;
26+
pyodesys)
27+
pypkg_fqn="git+https://github.com/bjodah/pyodesys@bdf2#egg=pyodesys"
28+
;;
29+
*)
30+
pypkg_fqn=$pypkg
31+
;;
32+
esac
33+
# if [[ $pypkg == "pycvodes" ]]; then
34+
# env \
35+
# CFLAGS="-isystem $SUNDBASE/include ${CFLAGS:-}" \
36+
# LDFLAGS="-Wl,--disable-new-dtags -Wl,-rpath,$SUNDBASE/lib -L$SUNDBASE/lib ${LDFLAGS:-}" \
37+
# python -m pip install $INSTALL_PIP_FLAGS $pypkg_fqn
38+
# else
39+
python -m pip install $INSTALL_PIP_FLAGS $pypkg_fqn
40+
# fi
41+
( cd /tmp; python -m pytest -k "not pool_discontinuity_approx" --pyargs $pypkg )
42+
done
43+
44+
python3 -m pip install $INSTALL_PIP_FLAGS -e .[all]
845
python3 -c "import pycvodes; import pyodesys; import pygslodeiv2" # debug this CI config
946
git fetch -tq
1047
python3 setup.py sdist # test pip installable sdist (checks MANIFEST.in)

0 commit comments

Comments
 (0)