You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .travis.yml
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -92,7 +92,7 @@ matrix:
92
92
branch: master
93
93
94
94
install:
95
-
- export BASE_DIR=`pwd`
95
+
- export BASE_DIR=`pwd`
96
96
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then mkdir -p ~/bin/ && ln -s /usr/bin/swig3.0 ~/bin/swig && export PATH=~/bin/:$PATH; fi # Python distutils only looks for `swig` and does not find `swig3.0`
97
97
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export PYTHON_EXECUTABLE=$(which python3); fi # cmake wont be able to find python3 on its own ...
98
98
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$CI_MODE" == "test" ]]; then pip3 install --upgrade pip==9.0.3 setuptools wheel pkgconfig scipy; fi
@@ -113,6 +113,7 @@ script:
113
113
- if [[ "$CI_MODE" == "test" ]]; then $FOLD notebooks "cd $BASE_DIR && scripts/runNotebook.sh python/examples/example_*/"; fi
114
114
- if [[ "$TRAVIS_OS_NAME" != "linux" ]] && [[ "$CI_MODE" == "test" ]]; then $FOLD cpputest ./scripts/run-cpputest.sh; fi
115
115
- if [[ "$TRAVIS_OS_NAME" != "linux" ]] && [[ "$CI_MODE" == "test" ]]; then $FOLD python-tests ./scripts/run-python-tests.sh; fi
116
+
- if [[ "$TRAVIS_OS_NAME" != "linux" ]] && [[ "$CI_MODE" == "test" ]]; then $FOLD python-tests ./tests/testCMakeCompilation.sh; fi
116
117
- if [[ "$CI_MODE" == "deploy" ]]; then $FOLD doxygen ./scripts/run-doxygen.sh; fi
117
118
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$CI_MODE" == "test" ]]; then $FOLD cppcheck ./scripts/run-cppcheck.sh; fi
118
119
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$CI_MODE" == "test" ]]; then $FOLD valgrind ./scripts/run-valgrind.sh; fi
Copy file name to clipboardExpand all lines: INSTALL.md
+41-9Lines changed: 41 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,11 +50,11 @@ The python interface requires [SWIG](http://www.swig.org), which has to be insta
50
50
Swig can be installed using package managers such as [brew](https://brew.sh) or [apt](https://wiki.debian.org/Apt):
51
51
52
52
brew install swig
53
-
53
+
54
54
or
55
-
55
+
56
56
apt-get install swig3.0
57
-
57
+
58
58
We note here that some linux package managers may provide swig executables as `swig3.0`, but installation as `swig` is required. This can be fixed using, e.g., symbolic links:
@@ -87,7 +87,7 @@ Note that Microsoft Visual Studio compilers are currently not supported.
87
87
To use AMICI from python, install the module and all other requirements using pip:
88
88
89
89
pip3 install amici
90
-
90
+
91
91
You can now import it as python module:
92
92
93
93
import amici
@@ -97,13 +97,13 @@ for use with Matlab or C++ and don't want to bothered with any unnecessary
97
97
dependencies, you can run
98
98
99
99
pip3 install --install-option --no-clibs amici
100
-
100
+
101
101
Note, however, that you will not be able to compile any model into a Python
102
102
extension with this installation.
103
103
104
104
#### Anaconda
105
105
106
-
To use an Anaconda installation of python, proceed as follows:
106
+
To use an Anaconda installation of python (https://www.anaconda.com/distribution/, Python>=3.6), proceed as follows:
107
107
108
108
Since Anaconda provides own versions of some packages which might not work with amici (in particular the gcc compiler), create a minimal virtual environment via:
109
109
@@ -127,18 +127,50 @@ The option `--no-cache` may be helpful here to make sure the installation is don
127
127
128
128
Now, you are ready to use AMICI in the virtual environment.
129
129
130
+
#### Windows
131
+
132
+
To install AMICI on Windows using python, you can proceed as follows:
133
+
134
+
Some general remarks:
135
+
136
+
* Install all libraries in a path not containing white spaces, e.g. directly under C:.
137
+
* Replace the following paths according to your installation.
138
+
* Slashes can be preferable to backslashes for some environment variables.
139
+
* See also [#425](https://github.com/icb-dcm/amici/issues/425) for further discussion.
140
+
141
+
Then, follow these steps:
142
+
143
+
* A python environment for Windows is required. We recommend [Anaconda](https://www.anaconda.com/distribution/) with python >=3.6.
144
+
* Install [mingw64](https://sourceforge.net/projects/mingw-w64/files/latest/download) (32bit will succeed to compile, but fail during linking). During installation, select Version=8.1.0, Architecture=x64_64. Add the following directory to `PATH`:
* Make sure that this is the compiler that is found by the system (e.g. `where gcc` in a `cmd` should point to this installation).
147
+
* Download CBLAS headers and libraries, e.g. [OpenBLAS](https://sourceforge.net/projects/openblas/files/v0.2.19/), binary distribution 0.2.19. Set the following environment variables:
* On recent Windows versions, `anaconda3\Lib\distutils\cygwinccompiler.py` fails linking `msvcr140.dll` with `[...] x86_64-w64-mingw32/bin/ld.exe: cannot find -lmsvcr140`. This is not required for amici, so in `cygwinccompiler.py``return ['msvcr140']` can be changed to `return []`.
159
+
* If you use a python version where [python/cpython#880](https://github.com/python/cpython/pull/880) has not been fixed yet, you need to disable `define hypot _hypot in anaconda3\include/pyconfig.h` yourself.
160
+
*`import amici` in python resulting in the very informative "ImportError: DLL load failed: The specified module could not be found." means that some amici module dependencies were not found (not the amici module itself). [DependencyWalker](http://www.dependencywalker.com/) will show you which ones.
161
+
130
162
### C++
131
163
132
-
To use AMICI from C++, run the
164
+
To use AMICI from C++, run the
133
165
134
166
./scripts/buildSundials.sh
135
167
./scripts/buildSuitesparse.sh
136
168
./scripts/buildAmici.sh
137
-
169
+
138
170
script to compile amici libary. The static library file can then be linked from
0 commit comments