]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
Revert "build_utils.sh: Prefer python3 instead of python2 for virtualenvs" 1771/head
authorDavid Galloway <dgallowa@redhat.com>
Wed, 17 Mar 2021 23:57:41 +0000 (19:57 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Wed, 17 Mar 2021 23:57:41 +0000 (19:57 -0400)
This reverts commit 58afbde0aead09adc1f7af06e8491670e1acd614.

scripts/build_utils.sh

index a61da2536cba18f97fab171d37180d306420d505..62541041832370377884d4c553b0fcad8e8b059d 100644 (file)
@@ -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
 }