Skip to content

Commit

Permalink
archlinux-module-mingw: Bump openturns 1.24
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed Nov 28, 2024
1 parent 8a0c8c7 commit ced2d4b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions archlinux-module-mingw/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@ MAINTAINER jschueller

RUN aurman -Syu --pgp_fetch --noconfirm --noedit mingw-w64-agrum mingw-w64-fftw mingw-w64-libmixmod

ENV ARCH=x86_64 PYMAJMIN=311
ENV ARCH=x86_64 PYMAJMIN=312
ENV MINGW_PREFIX /usr/${ARCH}-w64-mingw32

# openturns
RUN git clone -b v1.23 --depth 1 https://github.com/openturns/openturns.git /tmp/openturns && cd /tmp/openturns \
WORKDIR /tmp
RUN git clone -b v1.24 --depth 1 https://github.com/openturns/openturns.git && cd openturns \
&& ${ARCH}-w64-mingw32-cmake \
-DPython_INCLUDE_DIR=${MINGW_PREFIX}/include/python${PYMAJMIN} -DPython_LIBRARY=${MINGW_PREFIX}/lib/libpython${PYMAJMIN}.dll.a \
-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 \
-DCMAKE_UNITY_BUILD=ON -DCMAKE_UNITY_BUILD_BATCH_SIZE=32 -DSWIG_COMPILE_FLAGS="-O1" . \
&& make && 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*

0 comments on commit ced2d4b

Please sign in to comment.