Files
UnrealEngineUWP/Engine/Source/Programs/WebTestsServer/createenv.sh
lorry li c0f3e704a4 Enable web tests for iOS and Mac.
#jira UE-194887
[REVIEW] [at]rafa.lecina [at]chris.constantinescu [at]stephen.ma
#rb [at]rafa.lecina [at]stephen.ma

[CL 28111039 by lorry li in ue5-main branch]
2023-09-21 18:21:11 -04:00

21 lines
447 B
Bash
Executable File

if [ -d "env" ]; then
. ./env/bin/activate
else
case "$OSTYPE" in
darwin*)
../../../Binaries/ThirdParty/Python3/Mac/bin/python3 -m venv env
;;
*)
../../../Binaries/ThirdParty/Python3/Linux/bin/python3 -m venv env
;;
esac
. ./env/bin/activate
python -m pip install --upgrade pip
pip install -r requirements.txt
local install_exit_code = $?
if [ $install_exit_code -ne 0 ]; then
rm -rf env
exit $install_exit_code
fi
fi