1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
FROM openturns/archlinux-mingw:latest
RUN aurman -Syu --noconfirm --noedit --pgp_fetch mingw-w64-qwt
RUN aurman -Syu --noconfirm --noedit --pgp_fetch mingw-w64-paraview > /dev/null 2>&1
RUN aurman -Syu --noconfirm --noedit --pgp_fetch mingw-w64-mesa mingw-w64-libbacktrace-git
ENV ARCH=x86_64 PYMAJMIN=313
ENV MINGW_PREFIX=/usr/${ARCH}-w64-mingw32
# openturns
RUN git clone -b v1.26 --depth 1 https://github.com/openturns/openturns.git /tmp/openturns && cd /tmp/openturns \
&& ${ARCH}-w64-mingw32-cmake \
-DCMAKE_LINKER_TYPE=LLD \
-DBLA_VENDOR=Generic \
-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 . \
&& make > /dev/null 2>&1 && sudo make install > /dev/null \
&& sudo ${ARCH}-w64-mingw32-strip --strip-unneeded ${MINGW_PREFIX}/bin/libOT.dll ${MINGW_PREFIX}/Lib/site-packages/openturns/*.pyd \
&& rm -r /tmp/openturns*
# otmorris
RUN git clone -b v0.19 --depth 1 https://github.com/openturns/otmorris.git /tmp/otmorris && cd /tmp/otmorris \
&& ${ARCH}-w64-mingw32-cmake \
-DCMAKE_LINKER_TYPE=LLD \
-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 . \
&& make > /dev/null 2>&1 && sudo make install > /dev/null \
&& sudo ${ARCH}-w64-mingw32-strip --strip-unneeded ${MINGW_PREFIX}/bin/libotmorris.dll ${MINGW_PREFIX}/Lib/site-packages/otmorris/*.pyd \
&& rm -r /tmp/otmorris
# fake otfmi
RUN echo "__version__= '0.0'" > /tmp/otfmi.py && sudo mv /tmp/otfmi.py ${MINGW_PREFIX}/lib/python${PYMAJMIN}/otfmi.py
RUN sudo pacman -Syu --noconfirm python-pip
|