Skip to content

Commit 8a05f6a

Browse files
committed
CXX-2628 Apply Python >=3.10 selection workaround used by C Driver
1 parent 7ab3d07 commit 8a05f6a

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.mci.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,18 @@ functions:
296296
# parallel do not race to setup a venv environment; it has already been prepared.
297297
# This primarily addresses the situation where the "test" and "run_kms_servers"
298298
# functions invoke 'activate-kmstlsvenv.sh' simultaneously.
299-
. ./activate-kmstlsvenv.sh
300-
deactivate
299+
if [[ "$OSTYPE" =~ cygwin && ! -d kmstlsvenv ]]; then
300+
# Avoid using Python 3.10 on Windows due to incompatible cipher suites.
301+
# See CXX-2628.
302+
. ../venv-utils.sh
303+
venvcreate "C:/python/Python39/python.exe" kmstlsvenv || # windows-2017
304+
venvcreate "C:/python/Python38/python.exe" kmstlsvenv # windows-2015
305+
python -m pip install --upgrade boto3~=1.19 pykmip~=0.10.0
306+
deactivate
307+
else
308+
. ./activate-kmstlsvenv.sh
309+
deactivate
310+
fi
301311
echo "Preparing CSFLE venv environment... done."
302312
- command: shell.exec
303313
params:

0 commit comments

Comments
 (0)