Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
ci: macos: Choose python version
authorAndres Freund <andres@anarazel.de>
Mon, 25 Mar 2024 20:06:58 +0000 (13:06 -0700)
committerAndres Freund <andres@anarazel.de>
Mon, 25 Mar 2024 20:14:31 +0000 (13:14 -0700)
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

index 8da4f46e877fec7d317c87a64c0536e30b9cff46..b03d128184dfa13b256031b616fdc7d99e291259 100644 (file)
@@ -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