Install Python 3 via homebrew: brew install python.
The python binary (without 3 in the end) is located in /usr/local/opt/python/libexec/bin. Therefore, add this to the path:
# ~/.zshrc
# This is python 3 from homebrew. See `brew info python`.
export PATH="/usr/local/opt/python/libexec/bin:${PATH}"
Homebrew installs a python version with pyalloc, which is called python3.7m rather than python3.7. This causes cmake to not find it. Therefore, modify python.cmake:
See notes 2019-03-07.
Previous install guide: https://github.com/fiedl/hole-ice-study/blob/master/notes/2016-11-15_Installing_IceSim_on_macOS_Sierra.md
Notable issues:
Python 3
Install Python 3 via homebrew:
brew install python
.The
python
binary (without 3 in the end) is located in/usr/local/opt/python/libexec/bin
. Therefore, add this to the path:Homebrew installs a python version with
pyalloc
, which is calledpython3.7m
rather thanpython3.7
. This causescmake
to not find it. Therefore, modifypython.cmake
:Boost-Python
Install via homebrew for Python 3:
brew install boost-python3
.In order to have
cmake
find the correct library, create symlinks following the expected naming convention: