diff --git a/llvm/utils/release/test-release.sh b/llvm/utils/release/test-release.sh --- a/llvm/utils/release/test-release.sh +++ b/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