awesome, /usr/local/bin/python2.7 already exists

This commit is contained in:
Steven Robertson 2020-09-22 21:46:47 -07:00
parent 3831f691c1
commit 24c0737d37
1 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,8 @@ if ci_lib.have_apt():
# Mac's System Integrity Protection prevents symlinking /usr/bin
# and Azure isn't allowing disabling it apparently: https://developercommunityapi.westus.cloudapp.azure.com/idea/558702/allow-disabling-sip-on-microsoft-hosted-macos-agen.html
# so we'll use /usr/local/bin/python for everything
if ci_lib.have_brew():
# /usr/local/bin/python2.7 already exists!
if os.environ['PYTHONVERSION'].startswith('3') and ci_lib.have_brew():
batches.append([
'brew install python@{pv}'
.format(pv=os.environ['PYTHONVERSION'])