-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use latest stable release of Debian in the reproducible environment (#…
…186) * Use latest stable release of Debian in the reproducible environment * Updates to CI setup * pytest-pep8 unmaintained, will need to find a replacement * Fix the new internal skipif function * CI: try to evict cache * Try to specify extras to pip when installing from file * Skip native in some test runs for now * Handle sundials including "klu.h" * Use sundials-5.5.0 * debian:buster -> debian:bullseye * more verbose test output from docker based script * bump dev version * remove unused import
- Loading branch information
Showing
10 changed files
with
95 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.8.0.dev0+git" | ||
__version__ = "0.8.1.dev0+git" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,38 @@ | ||
FROM debian:stretch | ||
FROM debian:bullseye | ||
|
||
MAINTAINER Björn Dahlgren <[email protected]> | ||
|
||
ENV LANG C.UTF-8 | ||
|
||
# This dockerfile is designed to run on binder (mybinder.org) | ||
RUN apt-get update && \ | ||
apt-get --quiet --assume-yes install curl git g++-6 libgmp-dev binutils-dev bzip2 make cmake sudo \ | ||
python3-dev python3-pip libgsl-dev liblapack-dev graphviz && \ | ||
apt-get clean && \ | ||
curl -LOs http://computation.llnl.gov/projects/sundials/download/sundials-3.1.2.tar.gz && \ | ||
tar xzf sundials-3.1.2.tar.gz && mkdir build/ && cd build/ && \ | ||
cmake -DCMAKE_PREFIX_PATH=/usr/local -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release \ | ||
-DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF -DEXAMPLES_ENABLE=OFF -DEXAMPLES_INSTALL=OFF \ | ||
../sundials*/ && make install && cd - && rm -r build/ sundials* && \ | ||
python3 -m pip install --upgrade pip && \ | ||
curl -LOs http://dl.bintray.com/boostorg/release/1.67.0/source/boost_1_67_0.tar.bz2 && \ | ||
tar xjf boost_*.tar.bz2 && cd boost* && ./bootstrap.sh && ./b2 -j 2 --prefix=/usr/local/ install && cd - | ||
apt-get --quiet --assume-yes install curl git g++-10 gfortran-10 libgmp-dev binutils-dev bzip2 make cmake sudo \ | ||
python3-dev python3-pip libboost-dev libgsl-dev liblapack-dev libsuitesparse-dev graphviz && \ | ||
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
RUN mkdir /tmp/sundials-5.5.0-build && \ | ||
curl -Ls https://github.com/LLNL/sundials/releases/download/v5.5.0/sundials-5.5.0.tar.gz | tar xz -C /tmp && \ | ||
FC=gfortran-10 cmake \ | ||
-S /tmp/sundials-5.5.0 \ | ||
-B /tmp/sundials-5.5.0-build \ | ||
-DCMAKE_INSTALL_PREFIX=/usr/local \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DBUILD_SHARED_LIBS=ON \ | ||
-DBUILD_STATIC_LIBS=OFF \ | ||
-DEXAMPLES_ENABLE_C=OFF \ | ||
-DEXAMPLES_INSTALL=OFF \ | ||
-DENABLE_LAPACK=ON \ | ||
-DSUNDIALS_INDEX_SIZE=32 \ | ||
-DENABLE_KLU=ON \ | ||
-DKLU_INCLUDE_DIR=/usr/include/suitesparse \ | ||
-DKLU_LIBRARY_DIR=/usr/lib/x86_64-linux-gnu && \ | ||
cmake --build /tmp/sundials-5.5.0-build && \ | ||
cmake --build /tmp/sundials-5.5.0-build --target install && \ | ||
rm -r /tmp/sundials-5.5.0*/ && \ | ||
python3 -m pip install --upgrade-strategy=eager --upgrade pip && \ | ||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
|
||
# http://computation.llnl.gov/projects/sundials/download/sundials-5.5.0.tar.gz | ||
|
||
# At this point the system should be able to pip-install the package and all of its dependencies. We'll do so | ||
# when running the image using the ``host-jupyter-using-docker.sh`` script. Installed packages are cached. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters