[PATCH] D83990: [test-release] fallback to py3's venv module
Brian Cain via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 17 08:30:30 PDT 2020
bcain updated this revision to Diff 278785.
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
@@ -320,6 +320,12 @@
tar -C $SrcDir --strip-components=1 -xzf -
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
+
TestSuiteSrcDir=$BuildDir/llvm-test-suite
mkdir -p $TestSuiteSrcDir
@@ -500,7 +506,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.278785.patch
Type: text/x-patch
Size: 818 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200717/d5c790aa/attachment.bin>
More information about the llvm-commits
mailing list