Files
runner-images/images/macos/provision/core/python.sh
T

20 lines
593 B
Bash
Raw Normal View History

#!/bin/bash -e -o pipefail
source ~/utils/utils.sh
2020-09-10 14:34:08 +03:00
echo "Installing Python Tooling"
echo "Brew Installing Python 3"
2020-10-15 17:03:33 +03:00
# Workaround to have both 3.8 & 3.9(which required by some brew formulas) in the system, but only 3.8 is linked
2020-10-23 11:09:22 +03:00
brew install [email protected]
brew install [email protected]
brew unlink [email protected]
brew unlink [email protected]
brew link [email protected]
2020-09-10 14:34:08 +03:00
echo "Brew Installing Python 2"
2020-10-15 17:03:33 +03:00
# Create local tap with formula due to python2 formula depreciation
brew tap-new --no-git local/python2
2020-10-23 11:09:22 +03:00
FORMULA_PATH=$(brew extract python@2 local/python2 | grep "Homebrew/Library/Taps")
brew install $FORMULA_PATH