aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2024-03-25 13:06:58 -0700
committerAndres Freund <andres@anarazel.de>2024-03-25 16:39:08 -0700
commitc6f09e188bbc5df8fd96682ba19e96f19d137eb2 (patch)
treeaa70e892f543b97e685e31c9b6a78114d30d62a7
parent8ffc2aa720a2bdef33b16609ed4f8ed07932c141 (diff)
downloadpostgresql-c6f09e188bbc5df8fd96682ba19e96f19d137eb2.tar.gz
postgresql-c6f09e188bbc5df8fd96682ba19e96f19d137eb2.zip
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.
-rw-r--r--.cirrus.tasks.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/.cirrus.tasks.yml b/.cirrus.tasks.yml
index 1adfdfdd456..72f553e69f4 100644
--- a/.cirrus.tasks.yml
+++ b/.cirrus.tasks.yml
@@ -471,8 +471,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