Fix #11256 - Mac packaging: sign scipy/numpy dylibs + replace mactex with basictex#11265
Conversation
…nutes for the brew install to work), try basictex
| # - os: macos-15 | ||
| # generator: "Unix Makefiles" | ||
| # pretty: 'Mac arm64' |
There was a problem hiding this comment.
I tested with this workflow with macos-15 and macos-15-intel and ended up commenting them out for now. THe full run takes about 6min on macos-15 (arm64) and 8min30 on macos-15-intel.
There was a problem hiding this comment.
Just confirming - you'll turn this back on in a separate PR?
There was a problem hiding this comment.
It wasn't part of the build matrix, so I didn't turn it on in the end.
I added it so I could test doc builds in a speedier fashion that launching a release, then commented it out.
| # sudo tlmgr list --only-installed --data name > ori_installed.lst | ||
| # sudo tlmgr install texliveonfly | ||
| # sudo texliveonfly --compiler=xelatex dependencies.tex | ||
| # sudo tlmgr list --only-installed --data name > new_installed.lst | ||
| # python -c "from pathlib import Path; ori_lines = set(Path('./ori_installed.lst').read_text().splitlines()); new_lines = set(Path('./new_installed.lst').read_text().splitlines()); new_pkgs = new_lines - ori_lines; print([x for x in new_pkgs if not x.startswith('texliveonfly')])" |
There was a problem hiding this comment.
Initially I just did tlmgr update --self and these commands to find out what I needed exactly.
I then replaced with sudo tlmgr install enumitem framed multirow siunitx as it's faster than using texliveonfly
| if: always() | ||
| with: | ||
| name: "AllDocumentation-${{ github.event.pull_request.head.sha }}" | ||
| name: "AllDocumentation-${{ matrix.os }}-${{ github.event.pull_request.head.sha }}" |
There was a problem hiding this comment.
I'm uploading the entire pdf folder for all runners, so we can spot check them
| include: | ||
| - macos_dev_target: 12.1 | ||
| os: macos-13 | ||
| os: macos-15-intel |
There was a problem hiding this comment.
macos-13 is going to be removed in December, replae with macos-15-intel (EOL August 2027)
https://github.blog/changelog/2025-09-19-github-actions-macos-13-runner-image-is-closing-down/
| aria2c https://www.apple.com/certificateauthority/DeveloperIDG2CA.cer | ||
| security import AppleWWDRCAG2.cer -k $KEYCHAIN_PATH | ||
| security import DeveloperIDG2CA.cer -k $KEYCHAIN_PATH | ||
| security import DeveloperIDG2CA.cer -k $KEYCHAIN_PATH || true # macos-15-intel seems to already have it |
There was a problem hiding this comment.
That's weird but it's what it is...
| echo "Using brew to install basictex and adding it to PATH" | ||
| brew install --cask basictex |
There was a problem hiding this comment.
Release mac: use basictex now
| - name: Install required LaTeX packages by building the Test document | ||
| shell: bash | ||
| working-directory: ./doc/test | ||
| run: | | ||
| sudo tlmgr update --self | ||
| sudo tlmgr install enumitem framed multirow siunitx | ||
| xelatex dependencies.tex |
There was a problem hiding this comment.
install what's needed, and build the test document. If it works, then it's not missing a package
| file(GLOB _PYTHON_SOS | ||
| "${CMAKE_INSTALL_PREFIX}/python_lib/lib-dynload/*.so" | ||
| "${CMAKE_INSTALL_PREFIX}/python_lib/lib-dynload/*.dylib" | ||
| "${CMAKE_INSTALL_PREFIX}/python_lib/scipy/.dylibs/*.dylib" | ||
| "${CMAKE_INSTALL_PREFIX}/python_lib/numpy/.dylibs/*.dylib" | ||
| ) |
There was a problem hiding this comment.
Sign the numpy/scipy dylibs
|
I'm launching a final test release on my fork with all these changes at https://github.com/jmarrec/EnergyPlus/releases/tag/v25.2.0-pre-IOFreeze-6
|
Co-authored-by: Julien Marrec <julien.marrec@gmail.com>
|
This is ready. You can turn Mac doc builds back on in a separate PR. Merging. |

Pull request overview
Description of the purpose of this PR
brew install mactex-nogui. This can take up to 45 minutes, because that is a 4.0 GB package, and the CTAN mirrors are pretty crap sometimes.Here is a workflow where it took 45 minutes:
https://github.com/jmarrec/EnergyPlus/actions/runs/18312690117/job/52144877361#step:7:136
Pull Request Author
Reviewer