saltstack-formulas / salter

Salter orchestrates software profiles onto Linux/MacOS/FreeBSD/Windows without fuss.
Apache License 2.0
6 stars 5 forks source link

[FEATURE] macos use python3 globally #73

Open noelmcloughlin opened 4 years ago

noelmcloughlin commented 4 years ago

In bootstrap, consider setting MacOS to python3 using pyenv Ref: https://opensource.com/article/19/5/python-3-default-mac#what-to-do To bypass ld: symbol(s) not found for architecture x86_64 or clang errors here is full procedure.

brew uninstall --force binutils
brew uninstall --force pyenv
brew install --HEAD pyenv 
pyenv install 3.7.3
pyenv global 3.7.3
pyenv version
$ echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n  eval "$(pyenv init -)"\nfi' >> ~/.zshrc
$ echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n  eval "$(pyenv init -)"\nfi' >> ~/.bashrc
noelmcloughlin commented 4 years ago
% python --version
Python 3.7.3

% which python
/Users/noel/.pyenv/shims/python

% cat /Users/noel/.pyenv/version
3.7.3