From 24c0737d37eb9c2a2a112858ab79cbf671c6b748 Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Tue, 22 Sep 2020 21:46:47 -0700 Subject: [PATCH] awesome, /usr/local/bin/python2.7 already exists --- .ci/prep_azure.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.ci/prep_azure.py b/.ci/prep_azure.py index 68b76def..41f3b4cc 100755 --- a/.ci/prep_azure.py +++ b/.ci/prep_azure.py @@ -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'])