[PATCH] D83990: [test-release] fallback to py3's venv module

Brian Cain via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 16 15:05:33 PDT 2020


bcain updated this revision to Diff 278612.
bcain added a comment.

updated diff w/context


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D83990/new/

https://reviews.llvm.org/D83990

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


Index: llvm/utils/release/test-release.sh
===================================================================
--- llvm/utils/release/test-release.sh
+++ llvm/utils/release/test-release.sh
@@ -306,6 +306,11 @@
   check_program_exists 'objdump'
 fi
 
+venv=virtualenv
+if ! type -P 'virtualenv' > /dev/null 2>&1 ; then
+  check_program_exists 'python3'
+  venv="python3 -m venv"
+fi
 check_program_exists ${MAKE}
 
 # Export sources to the build directory.
@@ -500,7 +505,7 @@
   TestSuiteBuildDir="$BuildDir/test-suite-build"
   TestSuiteSrcDir="$BuildDir/llvm-test-suite"
 
-  virtualenv $SandboxDir
+  ${venv} $SandboxDir
   $SandboxDir/bin/python $BuildDir/llvm-project/llvm/utils/lit/setup.py install
   mkdir -p $TestSuiteBuildDir
 fi


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83990.278612.patch
Type: text/x-patch
Size: 739 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200716/3bb30228/attachment.bin>


More information about the llvm-commits mailing list