From 22a7e8085c5b05896b03a7d65000bbf3c74fa3bb Mon Sep 17 00:00:00 2001 From: Shane Harvey Date: Fri, 20 Nov 2020 21:45:42 -0800 Subject: [PATCH] PYTHON-2431 Fix MONGODB-AWS auth tests on macOS (#521) --- .evergreen/config.yml | 2 +- .evergreen/run-mongodb-aws-test.sh | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.evergreen/config.yml b/.evergreen/config.yml index c161aeaa2..5e2ce14d3 100644 --- a/.evergreen/config.yml +++ b/.evergreen/config.yml @@ -1568,7 +1568,7 @@ axes: variables: skip_EC2_auth_test: true skip_ECS_auth_test: true - python3_binary: python3 + python3_binary: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3 libmongocrypt_url: https://s3.amazonaws.com/mciuploads/libmongocrypt/macos/master/latest/libmongocrypt.tar.gz - id: rhel62 display_name: "RHEL 6.2 (x86_64)" diff --git a/.evergreen/run-mongodb-aws-test.sh b/.evergreen/run-mongodb-aws-test.sh index f0d59e960..e276a82bb 100755 --- a/.evergreen/run-mongodb-aws-test.sh +++ b/.evergreen/run-mongodb-aws-test.sh @@ -39,7 +39,12 @@ fi # show test output set -x -VIRTUALENV=$(command -v virtualenv) +# Workaround macOS python 3.9 incompatibility with system virtualenv. +if [ $(uname -s) = "Darwin" ]; then + VIRTUALENV="/Library/Frameworks/Python.framework/Versions/3.9/bin/python3 -m virtualenv" +else + VIRTUALENV=$(command -v virtualenv) +fi authtest () { if [ "Windows_NT" = "$OS" ]; then