Skip to content
Snippets Groups Projects
Unverified Commit 6fa9e1db authored by René Fritze's avatar René Fritze
Browse files

[manylinux] setup ccache

parent 65052453
No related branches found
No related tags found
1 merge request!129Wheelbuilder ccache
......@@ -5,4 +5,6 @@ export PYVER
PYTHON_ROOT_DIR=/opt/python/${PYVER}
export PYTHON_ROOT_DIR
PYBIN=${PYTHON_ROOT_DIR}/bin
export PATH=${PYBIN}:${PATH}
export PYBIN
PATH=${CCACHE_BIN_DIR}:${PYBIN}:${PATH}
export PATH
......@@ -22,7 +22,8 @@ ENV MPICC=/usr/lib64/openmpi/bin/mpicc \
WHEEL_DIR=/home/dxt/src/docker/wheelhouse \
PLATFORM=manylinux_2_28_x86_64 \
PY_SHORT=M4_PY_SHORT \
PIP_VERSION=22.2.2
PIP_VERSION=22.2.2 \
CCACHE_BIN_DIR=/usr/local/ccache/bin
# dunecontrol/cmake finds ALL of the pythons in /usr/local/bin if we don't delete them
# it ignores the PYTHON_ROOT setting
......@@ -35,13 +36,15 @@ RUN echo "alias ls='ls -h --color=auto';\
rm /usr/local/bin/python3* && \
/opt/python/${PY_SHORT}/bin/python -m pip install wheel auditwheel && \
/opt/python/${PY_SHORT}/bin/python -m pip install pip==${PIP_VERSION} && \
wget -c https://github.com/ccache/ccache/releases/download/v4.6.3/ccache-4.6.3-linux-x86_64.tar.xz -O - | tar Jx && \
wget -c https://github.com/ccache/ccache/releases/download/v4.7/ccache-4.7-linux-x86_64.tar.xz -O - | tar Jx && \
mv ccache-*/ccache /usr/local/bin && \
rm -rf ccache-*
rm -rf ccache-* && \
mkdir -p ${CCACHE_BIN_DIR} \
cd ${CCACHE_BIN_DIR} && \
(for ii in cc c++ cpp g++ gcc ; do ln -s $(which ccache) $ii; done )
COPY entrypoint.sh /usr/local/bin/
COPY gosu-amd64 /usr/local/bin/gosu
COPY build-wheels.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/*
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment