Browse code

Merge "Use venv for VIRTUALENV_CMD"

Zuul authored on 2020/04/16 01:16:30
Showing 2 changed files
... ...
@@ -28,6 +28,7 @@ openssl
28 28
 pkg-config
29 29
 psmisc
30 30
 python3-dev
31
+python3-venv
31 32
 tar
32 33
 tcpdump
33 34
 unzip
... ...
@@ -150,7 +150,8 @@ export PYTHON2_VERSION=${PYTHON2_VERSION:-${_DEFAULT_PYTHON2_VERSION:-2.7}}
150 150
 
151 151
 # Create a virtualenv with this
152 152
 if [[ ${USE_PYTHON3} == True ]]; then
153
-    export VIRTUALENV_CMD="virtualenv -p python3"
153
+    # Use the built-in venv to avoid more dependencies
154
+    export VIRTUALENV_CMD="python3 -m venv"
154 155
 else
155 156
     export VIRTUALENV_CMD="virtualenv "
156 157
 fi