@@ -490,6 +490,8 @@ functions:
490
490
working_dir : " src"
491
491
script : |
492
492
${PREPARE_SHELL}
493
+ . ${DRIVERS_TOOLS}/.evergreen/find-python3.sh
494
+ PYTHON=$(find_python3)
493
495
set +o xtrace
494
496
cat <<EOT > csfle-expansions.yml
495
497
PREPARE_CSFLE: |
@@ -498,8 +500,8 @@ functions:
498
500
export DISABLE_CRYPT_SHARED=${DISABLE_CRYPT_SHARED}
499
501
export TLS_FEATURE=${TLS_FEATURE}
500
502
export CRYPT_SHARED_LIB_PATH=${CRYPT_SHARED_LIB_PATH}
501
- export PYTHON=${ PYTHON}
502
- ${ PYTHON} -m pip install boto3
503
+ export PYTHON=$PYTHON
504
+ $PYTHON -m pip install boto3
503
505
# Exported without xtrace to avoid leaking credentials
504
506
set +o xtrace
505
507
export AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
@@ -555,8 +557,7 @@ functions:
555
557
params :
556
558
script : |
557
559
cd ${DRIVERS_TOOLS}/.evergreen/ocsp
558
- ${PYTHON} -m virtualenv ./venv
559
- ./venv/${VENV_BIN_DIR}/python -m pip install -r mock-ocsp-responder-requirements.txt
560
+ . ./activate-ocspvenv.sh
560
561
- command : shell.exec
561
562
params :
562
563
background : true
@@ -574,8 +575,7 @@ functions:
574
575
params :
575
576
script : |
576
577
cd ${DRIVERS_TOOLS}/.evergreen/ocsp
577
- ${PYTHON} -m virtualenv ./venv
578
- ./venv/${VENV_BIN_DIR}/python -m pip install -r mock-ocsp-responder-requirements.txt
578
+ . ./activate-ocspvenv.sh
579
579
- command : shell.exec
580
580
params :
581
581
background : true
@@ -595,8 +595,7 @@ functions:
595
595
params :
596
596
script : |
597
597
cd ${DRIVERS_TOOLS}/.evergreen/ocsp
598
- ${PYTHON} -m virtualenv ./venv
599
- ./venv/${VENV_BIN_DIR}/python -m pip install -r mock-ocsp-responder-requirements.txt
598
+ . ./activate-ocspvenv.sh
600
599
- command : shell.exec
601
600
params :
602
601
background : true
@@ -614,8 +613,7 @@ functions:
614
613
params :
615
614
script : |
616
615
cd ${DRIVERS_TOOLS}/.evergreen/ocsp
617
- ${PYTHON} -m virtualenv ./venv
618
- ./venv/${VENV_BIN_DIR}/python -m pip install -r mock-ocsp-responder-requirements.txt
616
+ . ./activate-ocspvenv.sh
619
617
- command : shell.exec
620
618
params :
621
619
background : true
@@ -1736,36 +1734,31 @@ axes:
1736
1734
display_name : " Ubuntu 18.04"
1737
1735
run_on : ubuntu1804-test
1738
1736
variables :
1739
- PYTHON : " /opt/mongodbtoolchain/v3/bin/python3"
1740
1737
VENV_BIN_DIR : " bin"
1741
1738
LIBMONGOCRYPT_OS : " ubuntu1804-64"
1742
1739
- id : ubuntu-20.04
1743
1740
display_name : " Ubuntu 20.04"
1744
1741
run_on : ubuntu2004-test
1745
1742
variables :
1746
- PYTHON : " /opt/mongodbtoolchain/v3/bin/python3"
1747
1743
VENV_BIN_DIR : " bin"
1748
1744
LIBMONGOCRYPT_OS : " ubuntu2004-64"
1749
1745
- id : ubuntu-18.04-arm64
1750
1746
display_name : " ARM64 Ubuntu 18.04"
1751
1747
run_on : ubuntu1804-arm64-test
1752
1748
variables :
1753
- PYTHON : " /opt/mongodbtoolchain/v3/bin/python3"
1754
1749
VENV_BIN_DIR : " bin"
1755
1750
LIBMONGOCRYPT_OS : " ubuntu1804-arm64"
1756
1751
- id : macos-11.00
1757
1752
display_name : " MacOS 11.00"
1758
1753
run_on : macos-1100
1759
1754
variables :
1760
1755
SINGLE_THREAD : true
1761
- PYTHON : " /opt/mongodbtoolchain/v3/bin/python3"
1762
1756
VENV_BIN_DIR : " bin"
1763
1757
LIBMONGOCRYPT_OS : " macos"
1764
1758
- id : windows-64-vs2017
1765
1759
display_name : " Windows (VS 2017)"
1766
1760
run_on : windows-64-vs2017-test
1767
1761
variables :
1768
- PYTHON : " /cygdrive/c/python/Python36/python"
1769
1762
VENV_BIN_DIR : " Scripts"
1770
1763
LIBMONGOCRYPT_OS : " windows-test"
1771
1764
0 commit comments