Skip to content

Commit

Permalink
Fix cython install
Browse files Browse the repository at this point in the history
  • Loading branch information
garth-wells committed Sep 12, 2024
1 parent 6347fa7 commit d428de8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions docker/Dockerfile.test-env
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ RUN python3 -m venv ${VIRTUAL_ENV}

# Install Python packages (via pip)
RUN pip install --no-cache-dir --upgrade pip setuptools wheel && \
pip install --no-cache-dir numpy==${NUMPY_VERSION} && \
pip install --no-cache-dir cython numpy==${NUMPY_VERSION} && \
pip install --no-cache-dir --no-build-isolation mpi4py

# Install KaHIP
Expand Down Expand Up @@ -316,9 +316,7 @@ RUN apt-get -qq update && \
make PETSC_ARCH=linux-gnu-complex128-64 ${MAKEFLAGS} all && \
# Install petsc4py
cd src/binding/petsc4py && \
pip install --no-cache-dir cython && \
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 pip -v install --no-cache-dir --no-build-isolation . && \
pip3 uninstall --yes cython && \
# Cleanup
apt-get -y purge bison flex && \
apt-get -y autoremove && \
Expand Down Expand Up @@ -359,9 +357,7 @@ RUN git clone --depth=1 -b v${SLEPC_VERSION} https://gitlab.com/slepc/slepc.git
make && \
# Install slepc4py
cd src/binding/slepc4py && \
pip3 install --no-cache-dir cython && \
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 pip -v install --no-cache-dir --no-build-isolation . && \
pip3 uninstall --yes cython && \
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 d428de8

Please sign in to comment.