-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
74bff5d
commit 20ceade
Showing
2 changed files
with
11 additions
and
6 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,18 +1,23 @@ | ||
FROM openturns/archlinux-mingw:latest | ||
MAINTAINER jschueller | ||
|
||
RUN aurman -Syu --pgp_fetch --noconfirm --noedit mingw-w64-agrum mingw-w64-fftw mingw-w64-libmixmod | ||
# RUN aurman -Syu --pgp_fetch --noconfirm --noedit mingw-w64-agrum mingw-w64-fftw mingw-w64-libmixmod | ||
# RUN sudo pacman -Syu --noconfirm | ||
|
||
ENV ARCH=x86_64 PYMAJMIN=311 | ||
ENV MINGW_PREFIX /usr/${ARCH}-w64-mingw32 | ||
|
||
# Install AUR helper | ||
# RUN git clone https://aur.archlinux.org/mingw-w64-coin-or-ipopt.git /tmp/aurman && cd /tmp/aurman \ | ||
# && makepkg -sfi --skippgpcheck --noconfirm && rm -r /tmp/aurman | ||
|
||
# openturns | ||
RUN git clone -b v1.23 --depth 1 https://github.com/openturns/openturns.git /tmp/openturns && cd /tmp/openturns \ | ||
RUN git clone --depth 1 https://github.com/openturns/openturns.git /tmp/openturns && cd /tmp/openturns \ | ||
&& ${ARCH}-w64-mingw32-cmake \ | ||
-DPython_INCLUDE_DIR=${MINGW_PREFIX}/include/python${PYMAJMIN} -DPython_LIBRARY=${MINGW_PREFIX}/lib/libpython${PYMAJMIN}.dll.a \ | ||
-DPython_EXECUTABLE=/usr/bin/${ARCH}-w64-mingw32-python${PYMAJMIN}-bin \ | ||
-DCMAKE_UNITY_BUILD=ON -DCMAKE_UNITY_BUILD_BATCH_SIZE=32 -DSWIG_COMPILE_FLAGS="-O1" -DUSE_SPHINX=OFF . \ | ||
&& make -j2 && sudo make install \ | ||
&& sudo ${ARCH}-w64-mingw32-strip --strip-unneeded ${MINGW_PREFIX}/bin/libOT.dll ${MINGW_PREFIX}/Lib/site-packages/openturns/*.pyd \ | ||
&& rm -r /tmp/openturns* | ||
&& make && sudo make install \ | ||
&& sudo ${ARCH}-w64-mingw32-strip --strip-unneeded ${MINGW_PREFIX}/bin/libOT.dll ${MINGW_PREFIX}/Lib/site-packages/openturns/*.pyd | ||
RUN cd /tmp/openturns && ctest -E cppcheck -R "TruncatedNormal" --output-on-failure | ||
|