changeset 31458:386f2f8a54f0 stable

GitHub-CI (macos): Work around conflict between pre-installed and Homebrew Python. * .github/workflows/make.yaml (macos): Force overwriting files from the pre-installed version of Python. They conflict with the files from Homebrew's versions of Python.
author Markus Mützel <markus.muetzel@gmx.de>
date Wed, 16 Nov 2022 19:23:54 +0100
parents dccc52324b0b
children ccb28d9a1a62 2b83190294b5
files .github/workflows/make.yaml
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.github/workflows/make.yaml	Wed Nov 16 10:04:08 2022 -0500
+++ b/.github/workflows/make.yaml	Wed Nov 16 19:23:54 2022 +0100
@@ -197,6 +197,12 @@
         # It looks like "gfortran" isn't working correctly unless "gcc" is
         # re-installed.
 
+        # Homebrew's Python conflicts with the Python that comes pre-installed
+        # on the GitHub runners. Some of Octave's dependencies depend on
+        # different versions of Homebrew's Python. Enforce using the ones from
+        # Homebrew to avoid errors on updates.
+        # See: https://github.com/orgs/Homebrew/discussions/3928
+
         # See also: https://formulae.brew.sh/formula/octave#default
         # The packages are listed in (alphabetically sorted) blocks:
         # The first block is for "direct" dependencies.
@@ -205,6 +211,7 @@
         run: |
           brew update
           brew reinstall gcc
+          brew install --overwrite python@3.10 python@3.11
           brew install arpack epstool fftw fig2dev fltk fontconfig freetype \
             ghostscript gl2ps glpk gnuplot graphicsmagick hdf5 libsndfile \
             libtool openblas pcre2 portaudio pstoedit qhull qrupdate \