Files
UnrealEngineUWP/Engine/Source/Programs/WebTestsServer/createenv.sh

21 lines
447 B
Bash
Raw Normal View History

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