[llvm] 9ff030c - test-release.sh: Kill python2

Diana Picus via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 29 01:26:34 PDT 2021


Author: Diana Picus
Date: 2021-07-29T10:25:48+02:00
New Revision: 9ff030ca50e327d522e80ee20f4d5febcce94a24

URL: https://github.com/llvm/llvm-project/commit/9ff030ca50e327d522e80ee20f4d5febcce94a24
DIFF: https://github.com/llvm/llvm-project/commit/9ff030ca50e327d522e80ee20f4d5febcce94a24.diff

LOG: test-release.sh: Kill python2

Don't prefer python2's virtualenv when setting up the test-suite.
Always use python3 instead, since that's what we support everywhere else
anyway.

Differential Revision: https://reviews.llvm.org/D106941

Added: 
    

Modified: 
    llvm/utils/release/test-release.sh

Removed: 
    


################################################################################
diff  --git a/llvm/utils/release/test-release.sh b/llvm/utils/release/test-release.sh
index 64ee411a69f65..5f602a451aedb 100755
--- a/llvm/utils/release/test-release.sh
+++ b/llvm/utils/release/test-release.sh
@@ -508,11 +508,8 @@ fi
 # Setup the test-suite.  Do this early so we can catch failures before
 # we do the full 3 stage build.
 if [ $do_test_suite = "yes" ]; then
-  venv=virtualenv
-  if ! type -P 'virtualenv' > /dev/null 2>&1 ; then
-    check_program_exists 'python3'
-    venv="python3 -m venv"
-  fi
+  check_program_exists 'python3'
+  venv="python3 -m venv"
 
   SandboxDir="$BuildDir/sandbox"
   Lit=$SandboxDir/bin/lit


        


More information about the llvm-commits mailing list