]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
bootstrap: force usage of python2 in virtualenv command
authorJeff Layton <jlayton@kernel.org>
Wed, 18 Sep 2019 16:24:56 +0000 (12:24 -0400)
committerJeff Layton <jlayton@kernel.org>
Wed, 18 Sep 2019 16:55:36 +0000 (12:55 -0400)
None of this code seems to be python3 ready, so force the virtualenv
command in the bootstrap script to use python2 on a box where both are
available.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
bootstrap

index 0b7a872e878605c4b7da3f66b0148e8d7505895f..1deb441618c494280bd5e25a3231eb1b58b901a7 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -127,7 +127,7 @@ if [ -z "$NO_CLOBBER" ] || [ ! -e ./virtualenv ]; then
     if ! which virtualenv > /dev/null; then
         pip install virtualenv
     fi
-    virtualenv --setuptools virtualenv
+    virtualenv --python=python2 --setuptools virtualenv
 fi
 
 # Upgrade pip first