From: David Galloway Date: Wed, 17 Mar 2021 23:57:41 +0000 (-0400) Subject: Revert "build_utils.sh: Prefer python3 instead of python2 for virtualenvs" X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1771%2Fhead;p=ceph-build.git Revert "build_utils.sh: Prefer python3 instead of python2 for virtualenvs" This reverts commit 58afbde0aead09adc1f7af06e8491670e1acd614. --- diff --git a/scripts/build_utils.sh b/scripts/build_utils.sh index a61da253..62541041 100644 --- a/scripts/build_utils.sh +++ b/scripts/build_utils.sh @@ -96,12 +96,10 @@ create_virtualenv () { if [ "$(ls -A $path)" ]; then echo "Will reuse existing virtual env: $path" else - if [ $(command -v python3) ]; then - virtualenv -p python3 $path - elif [ $(command -v python2.7) ]; then + if [ $(command -v python2.7) ]; then virtualenv -p python2.7 $path else - virtualenv -p python $path + virtualenv -p python3 $path fi fi }