postgres.git / summary / log / commit / refs
commit 897efe0f39bee8ced11871ac65cc8d28d9b8ea1e
Author: Andres Freund <andres@anarazel.de>
Date: Mon Mar 25 20:06:58 2024 +0000
First released in: 17.0, 15.7, 16.3
ci: macos: Choose python version
The CI base image used to have a python3 with headers etc installed in PATH,
but doesn't anymore. Instead of relying on a specific version in the base
image, explicitly install one ourselves.
On 16 and HEAD this lead to a build without python support, but on 15 CI
failed, due to explicitly enabled python3 support.
.cirrus.tasks.yml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/.cirrus.tasks.yml b/.cirrus.tasks.yml
index 8da4f46e877..b03d128184d 100644
--- a/.cirrus.tasks.yml
+++ b/.cirrus.tasks.yml
@@ -260,8 +260,11 @@ task:
openssl \
p5.34-io-tty \
p5.34-ipc-run \
+ python312 \
tcl \
zstd
+ # system python doesn't provide headers
+ sudo /opt/local/bin/port select python3 python312
# Make macports install visible for subsequent steps
echo PATH=/opt/local/sbin/:/opt/local/bin/:$PATH >> $CIRRUS_ENV
upload_caches: macports
[parent: b74e4a08b983]