File tree Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -974,18 +974,26 @@ functions:
974
974
${PREPARE_SHELL}
975
975
976
976
cd ${DRIVERS_TOOLS}/.evergreen/csfle
977
- source activate_venv.sh || :
977
+
978
+ # only run this if virtualenv is installed
979
+ if ${PYTHON3_BINARY} -m venv ./venv; then
980
+ . ./activate_venv.sh
981
+
982
+ # TODO (GODRIVER-2239): Stabilize this pip install with a non-forked version of PyKMIP in
983
+ pip install git+https://github.com/kevinAlbs/PyKMIP.git@expand_tls12_ciphers
984
+ else
985
+ echo "Python module venv not found, skipping virtual environment setup..."
986
+ fi
978
987
- command : shell.exec
979
988
params :
980
989
background : true
981
990
script : |
982
991
cd ${DRIVERS_TOOLS}/.evergreen/csfle
983
- . ./activate_venv.sh
984
-
985
- # TODO (GODRIVER-2239): Stabilize this pip install with a non-forked version of PyKMIP in
986
- pip install git+https://github.com/kevinAlbs/PyKMIP.git@expand_tls12_ciphers
987
-
988
- ./kmstlsvenv/bin/python3 -u kms_kmip_server.py --port 5698
992
+ if [ "Windows_NT" = "$OS" ]; then
993
+ kmstlsvenv/Scripts/python.exe -u kms_kmip_server.py --port 5698
994
+ else
995
+ ./kmstlsvenv/bin/python3 -u kms_kmip_server.py --port 5698
996
+ fi
989
997
990
998
run-kms-tls-test :
991
999
- command : shell.exec
You can’t perform that action at this time.
0 commit comments