Skip to content

Commit

Permalink
Small change
Browse files Browse the repository at this point in the history
  • Loading branch information
garth-wells committed May 26, 2024
1 parent e74a672 commit 5ec45b4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docker/Dockerfile.test-env
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ ENV PYTHONPATH=/usr/local/lib:$PYTHONPATH
ENV PETSC_DIR=/usr/local/petsc SLEPC_DIR=/usr/local/slepc
RUN apt-get -qq update && \
apt-get -y install bison flex && \
git clone -b v${PETSC_VERSION} https://gitlab.com/petsc/petsc.git ${PETSC_DIR} && \
git clone --depth=1 -b v${PETSC_VERSION} https://gitlab.com/petsc/petsc.git ${PETSC_DIR} && \
cd ${PETSC_DIR} && \
# Real32, 32-bit int
./configure \
Expand Down Expand Up @@ -321,7 +321,7 @@ RUN apt-get -qq update && \
cd src/binding/petsc4py && \
pip3 install --break-system-packages --no-cache-dir cython wheel && \
PETSC_ARCH=linux-gnu-real32-32:linux-gnu-complex64-32:linux-gnu-real64-32:linux-gnu-complex128-32:linux-gnu-real64-64:linux-gnu-complex128-64 pip3 install --break-system-packages --no-cache-dir -v --no-build-isolation . && \
pip3 uninstall --yes cython wheel && \
# pip3 uninstall --yes cython wheel && \
# Cleanup
apt-get -y purge bison flex && \
apt-get -y autoremove && \
Expand All @@ -340,7 +340,7 @@ RUN apt-get -qq update && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Install SLEPc
RUN git clone -b v${SLEPC_VERSION} https://gitlab.com/slepc/slepc.git ${SLEPC_DIR} && \
RUN git clone --depth=1 -b v${SLEPC_VERSION} https://gitlab.com/slepc/slepc.git ${SLEPC_DIR} && \
cd ${SLEPC_DIR} && \
export PETSC_ARCH=linux-gnu-real32-32 && \
./configure && \
Expand All @@ -362,9 +362,9 @@ RUN git clone -b v${SLEPC_VERSION} https://gitlab.com/slepc/slepc.git ${SLEPC_DI
make && \
# Install slepc4py
cd src/binding/slepc4py && \
pip3 install --break-system-packages --no-cache-dir cython wheel && \
# pip3 install --break-system-packages --no-cache-dir cython wheel && \
PETSC_ARCH=linux-gnu-real32-32:linux-gnu-complex64-32:linux-gnu-real64-32:linux-gnu-complex128-32:linux-gnu-real64-64:linux-gnu-complex128-64 pip3 install --break-system-packages --no-cache-dir --no-build-isolation . && \
pip3 uninstall --yes cython wheel && \
# pip3 uninstall --yes cython wheel && \
rm -rf ${SLEPC_DIR}/CTAGS ${SLEPC_DIR}/TAGS ${SLEPC_DIR}/docs ${SLEPC_DIR}/src/ ${SLEPC_DIR}/**/obj/ ${SLEPC_DIR}/**/test/ && \
rm -rf /tmp/*

Expand Down

0 comments on commit 5ec45b4

Please sign in to comment.