Skip to content

Commit b628d5e

Browse files
committed
Abandon setup-python
Due to actions/setup-python#871. Can't find libpython.so
1 parent be6c7f0 commit b628d5e

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,6 @@ jobs:
4545
: # Make sure the current directory is empty
4646
find . -delete
4747
48-
- uses: actions/setup-python@v5
49-
id: setup-python
50-
with:
51-
# Use the oldest supported Python version
52-
python-version: '3.10'
53-
# Do this to minimise the 'magic' that setup-python does behind the scenes
54-
update-environment: false
55-
5648
- uses: actions/checkout@v4
5749
with:
5850
path: repo
@@ -61,7 +53,7 @@ jobs:
6153
run: |
6254
sudo apt-get update
6355
sudo apt-get -y install \
64-
$(${{ steps.setup-python.outputs.python-path }} ./repo/scripts/firedrake-configure --arch ${{ matrix.arch }} --show-system-dependencies)
56+
$(python3 ./repo/scripts/firedrake-configure --arch ${{ matrix.arch }} --show-system-dependencies)
6557
: # Extra test dependencies
6658
sudo apt-get -y install parallel
6759
@@ -71,7 +63,7 @@ jobs:
7163
git clone https://github.com/firedrakeproject/petsc.git
7264
cd petsc
7365
./configure \
74-
$(${{ steps.setup-python.outputs.python-path }} ../repo/scripts/firedrake-configure --arch ${{ matrix.arch }} --show-petsc-configure-options) \
66+
$(python3 ../repo/scripts/firedrake-configure --arch ${{ matrix.arch }} --show-petsc-configure-options) \
7567
--with-make-np=12
7668
make
7769
@@ -82,7 +74,7 @@ jobs:
8274
export HDF5_MPI=ON
8375
export CC=mpicc CXX=mpicxx
8476
export MPICC=$CC
85-
${{ steps.setup-python.outputs.python-path }} -m venv venv
77+
python3 -m venv venv
8678
source venv/bin/activate
8779
: # Force a rebuild of petsc4py as the cached one will not link to the fresh
8880
: # install of PETSc. A similar trick may be needed for compiled dependencies

0 commit comments

Comments
 (0)