From 74aa0fcdfcefeb97d32fd27c84d269683c8689f3 Mon Sep 17 00:00:00 2001 From: "Jack S. Hale" Date: Fri, 14 Apr 2023 10:11:29 +0200 Subject: [PATCH] Fix Cython version. --- .github/workflows/macos.yml | 3 ++- docker/Dockerfile | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index a2409bb9ec..ff7a23393b 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 41cb50a08c..4f9a23b436 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 && \