Skip to content

Commit

Permalink
tweak install script
Browse files Browse the repository at this point in the history
  • Loading branch information
bjodah committed Jan 16, 2025
1 parent 1e9ab0c commit 5054f13
Showing 1 changed file with 39 additions and 2 deletions.
41 changes: 39 additions & 2 deletions .ci/ci-01-install.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,47 @@
#!/bin/bash
set -euxo pipefail
export CPATH=$SUNDBASE/include:$CPATH
export CPATH=$SUNDBASE/include:${CPATH:-}
export LIBRARY_PATH=$SUNDBASE/lib
export LD_LIBRARY_PATH=$SUNDBASE/lib
source /opt-3/cpython-v3.*-apt-deb/bin/activate
python3 -m pip install --cache-dir $CACHE_ROOT/pip_cache --user -e .[all]

INSTALL_PIP_FLAGS="--cache-dir $CACHE_ROOT/pip_cache ${INSTALL_PIP_FLAGS:-}" # --user
for pypkg in pyodeint pygslodeiv2 pycompilation pycodeexport pycvodes pyodesys; do
case $pypkg in
pyodeint)
pypkg_fqn="git+https://github.com/bjodah/pyodeint@sep21#egg=pyodeint"
;;
pygslodeiv2)
pypkg_fqn="git+https://github.com/bjodah/pygslodeiv2@cython-except-plus#egg=pygslodeiv2"
;;
pycompilation)
pypkg_fqn="git+https://github.com/bjodah/pycompilation@use-importlib-rather-than-imp#egg=pycompilation"
;;
pycodeexport)
pypkg_fqn="git+https://github.com/bjodah/pycodeexport@qulify-extension-name-and-new-ci#egg=pycodeexport"
;;
pycvodes)
pypkg_fqn="git+https://github.com/bjodah/pycvodes@may21#egg=pycvodes"
;;
pyodesys)
pypkg_fqn="git+https://github.com/bjodah/pyodesys@bdf2#egg=pyodesys"
;;
*)
pypkg_fqn=$pypkg
;;
esac
# if [[ $pypkg == "pycvodes" ]]; then
# env \
# CFLAGS="-isystem $SUNDBASE/include ${CFLAGS:-}" \
# LDFLAGS="-Wl,--disable-new-dtags -Wl,-rpath,$SUNDBASE/lib -L$SUNDBASE/lib ${LDFLAGS:-}" \
# python -m pip install $INSTALL_PIP_FLAGS $pypkg_fqn
# else
python -m pip install $INSTALL_PIP_FLAGS $pypkg_fqn
# fi
( cd /tmp; python -m pytest -k "not pool_discontinuity_approx" --pyargs $pypkg )
done

python3 -m pip install $INSTALL_PIP_FLAGS -e .[all]
python3 -c "import pycvodes; import pyodesys; import pygslodeiv2" # debug this CI config
git fetch -tq
python3 setup.py sdist # test pip installable sdist (checks MANIFEST.in)
Expand Down

0 comments on commit 5054f13

Please sign in to comment.