|
1 | 1 | #!/bin/bash
|
2 | 2 | set -euxo pipefail
|
3 |
| -export CPATH=$SUNDBASE/include:$CPATH |
| 3 | +export CPATH=$SUNDBASE/include:${CPATH:-} |
4 | 4 | export LIBRARY_PATH=$SUNDBASE/lib
|
5 | 5 | export LD_LIBRARY_PATH=$SUNDBASE/lib
|
6 | 6 | 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] |
8 | 45 | python3 -c "import pycvodes; import pyodesys; import pygslodeiv2" # debug this CI config
|
9 | 46 | git fetch -tq
|
10 | 47 | python3 setup.py sdist # test pip installable sdist (checks MANIFEST.in)
|
|
0 commit comments