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 fe40c9d commit ac4cabf
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .ci/ci-01-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ 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

PYTHON=python
INSTALL_PIP_FLAGS="--cache-dir $CACHE_ROOT/pip_cache ${INSTALL_PIP_FLAGS:-}" # --user
for pypkg in pyodeint pygslodeiv2 pycompilation pycodeexport pycvodes sym pyodesys; do
for pypkg in pyodeint pygslodeiv2 pycompilation pycodeexport pycvodes pykinsol sym pyodesys; do
case $pypkg in
sym)
pypkg_fqn="git+https://github.com/bjodah/sym@jun21#egg=sym"
Expand All @@ -29,18 +29,25 @@ for pypkg in pyodeint pygslodeiv2 pycompilation pycodeexport pycvodes sym pyodes
pyodesys)
pypkg_fqn="git+https://github.com/bjodah/pyodesys@bdf2#egg=pyodesys"
;;
pykinsol)
pypkg_fqn="git+https://github.com/bjodah/pykinsol@jan25#egg=pykinsol"
;;
*)
pypkg_fqn=$pypkg
;;
esac
python -m pip install $INSTALL_PIP_FLAGS $pypkg_fqn
#( cd /tmp; python -m pytest -k "not pool_discontinuity_approx" --pyargs $pypkg )
$PYTHON -m pip install $INSTALL_PIP_FLAGS $pypkg_fqn
#( 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"
$PYTHON -m pip install $INSTALL_PIP_FLAGS -e .[all]
$PYTHON -c "import pycvodes; import pyodesys; import pygslodeiv2"
git fetch -tq
python3 setup.py sdist # test pip installable sdist (checks MANIFEST.in)
$PYTHON setup.py sdist # test pip installable sdist (checks MANIFEST.in)
git archive -o dist/chempy-head.zip HEAD # test pip installable zip (symlinks break)
mkdir -p deploy/public_html/branches/${CI_COMMIT_BRANCH}
cp dist/chempy-* deploy/public_html/branches/${CI_COMMIT_BRANCH}/

[[ $($PYTHON setup.py --version) =~ ^[0-9]+.* ]]
./scripts/run_tests.sh --cov chempy --cov-report html
./scripts/coverage_badge.py htmlcov/ htmlcov/coverage.svg

0 comments on commit ac4cabf

Please sign in to comment.