diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index a2409bb9ec8..ff7a23393b0 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -37,6 +37,7 @@ jobs: source fenicsx/bin/activate python -m pip install --upgrade setuptools python -m pip install --upgrade pip + python -m pip install Cython==0.29.32 echo "VIRTUAL ENV:" $VIRTUAL_ENV echo '$(which python):' $(which python) @@ -59,7 +60,7 @@ jobs: --download-ptscotch make all cd src/binding/petsc4py - PETSC_DIR=$GITHUB_WORKSPACE/petsc PETSC_ARCH=arch-darwin-c-opt pip3 install --no-cache-dir . + PETSC_DIR=$GITHUB_WORKSPACE/petsc PETSC_ARCH=arch-darwin-c-opt pip3 install --no-cache-dir -v . - name: Install Basix run: | diff --git a/docker/Dockerfile b/docker/Dockerfile index 41cb50a08ca..4f9a23b4366 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -319,7 +319,8 @@ RUN apt-get -qq update && \ make PETSC_DIR=/usr/local/petsc PETSC_ARCH=linux-gnu-complex-64 ${MAKEFLAGS} all && \ # Install petsc4py cd src/binding/petsc4py && \ - PETSC_ARCH=linux-gnu-real-32:linux-gnu-complex-32:linux-gnu-real-64:linux-gnu-complex-64 pip3 install --no-cache-dir . && \ + pip3 install --no-cache-dir Cython==0.29.32 && \ + PETSC_ARCH=linux-gnu-real-32:linux-gnu-complex-32:linux-gnu-real-64:linux-gnu-complex-64 pip3 install --no-cache-dir -v . && \ # Cleanup apt-get -y purge bison flex && \ apt-get -y autoremove && \