File tree Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -492,7 +492,7 @@ functions:
492
492
script : |
493
493
${PREPARE_SHELL}
494
494
# The aws_e2e_assume_role script requires python3 with boto3.
495
- virtualenv -p ${python3_binary} mongovenv
495
+ ${python3_binary} -m venv mongovenv
496
496
if [ "Windows_NT" = "$OS" ]; then
497
497
. mongovenv/Scripts/activate
498
498
else
Original file line number Diff line number Diff line change 3
3
set -o xtrace
4
4
set -o errexit # Exit the script with error if any of the commands fail
5
5
6
+ # Get access to createvirtualenv.
7
+ . .evergreen/utils.sh
8
+
6
9
# ###########################################
7
10
# Main Program #
8
11
# ###########################################
39
42
# show test output
40
43
set -x
41
44
42
- VIRTUALENV=$( command -v virtualenv)
43
-
44
45
authtest () {
45
46
if [ " Windows_NT" = " $OS " ]; then
46
47
PYTHON=$( cygpath -m $PYTHON )
@@ -49,7 +50,7 @@ authtest () {
49
50
echo " Running MONGODB-AWS authentication tests with $PYTHON "
50
51
$PYTHON --version
51
52
52
- $VIRTUALENV -p $PYTHON --system-site-packages --never-download venvaws
53
+ createvirtualenv $PYTHON venvaws
53
54
if [ " Windows_NT" = " $OS " ]; then
54
55
. venvaws/Scripts/activate
55
56
else
Original file line number Diff line number Diff line change @@ -8,14 +8,16 @@ createvirtualenv () {
8
8
PYTHON=$1
9
9
VENVPATH=$2
10
10
if $PYTHON -m virtualenv --version; then
11
- VIRTUALENV=" $PYTHON -m virtualenv"
11
+ VIRTUALENV=" $PYTHON -m virtualenv --never-download"
12
+ elif $PYTHON -m venv -h > /dev/null; then
13
+ VIRTUALENV=" $PYTHON -m venv"
12
14
elif command -v virtualenv; then
13
- VIRTUALENV=" $( command -v virtualenv) -p $PYTHON "
15
+ VIRTUALENV=" $( command -v virtualenv) -p $PYTHON --never-download "
14
16
else
15
17
echo " Cannot test without virtualenv"
16
18
exit 1
17
19
fi
18
- $VIRTUALENV --system-site-packages --never-download $VENVPATH
20
+ $VIRTUALENV --system-site-packages $VENVPATH
19
21
if [ " Windows_NT" = " $OS " ]; then
20
22
. $VENVPATH /Scripts/activate
21
23
else
You can’t perform that action at this time.
0 commit comments