Skip to content

Commit 48785a9

Browse files
p-mongop
andauthored
Explicitly specify python2 for ubuntu2004
(#2420) * Explicitly specify python2 for ubuntu2004 * add a note explaining python 2 usage * explain why python version must be explicitly given Co-authored-by: Oleg Pudeyev <[email protected]>
1 parent 456d7db commit 48785a9

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.evergreen/run-tests.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
#!/bin/bash
22

3+
# Note that mlaunch is executed with (and therefore installed with) Python 2.
4+
# The reason for this is that in the past, some of the distros we tested on
5+
# had an ancient version of Python 3 that was unusable (e.g. it couldn't
6+
# install anything from PyPI due to outdated TLS/SSL implementation).
7+
# It is likely that all of the current distros we use have a recent enough
8+
# and working Python 3 implementation, such that we could use Python 3 for
9+
# everything.
10+
#
11+
# Note that some distros (e.g. ubuntu2004) do not contain a `python' binary
12+
# at all, thus python2 or python3 must be explicitly specified depending on
13+
# the desired version.
14+
315
set -e
416
set -o pipefail
517

@@ -274,7 +286,7 @@ if test -n "$OCSP_MOCK_PID"; then
274286
kill "$OCSP_MOCK_PID"
275287
fi
276288

277-
python -m mtools.mlaunch.mlaunch stop --dir "$dbdir"
289+
python2 -m mtools.mlaunch.mlaunch stop --dir "$dbdir"
278290

279291
if test -n "$FLE" && test "$DOCKER_PRELOAD" != 1; then
280292
# Terminate all kmip servers... and whatever else happens to be running

spec/shared

0 commit comments

Comments
 (0)