Skip to content

Commit 6f2489e

Browse files
GODRIVER-2480 create branching for windows KMS venv (#1010)
1 parent b659a83 commit 6f2489e

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

.evergreen/config.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -974,18 +974,26 @@ functions:
974974
${PREPARE_SHELL}
975975
976976
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
978987
- command: shell.exec
979988
params:
980989
background: true
981990
script: |
982991
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
989997
990998
run-kms-tls-test:
991999
- command: shell.exec

0 commit comments

Comments
 (0)