Files
UnrealEngineUWP/Engine/Source/Programs/WebTestsServer/createenv.sh
lorry li d93cb23b9e Fix the package install error in daphne4.0.0 when run WebTestsServer on linux, after updating python to 3.11 in 32683702: ImportError: libffi.so.6: cannot open shared object file: No such file or directory
[REVIEW] [at]rafa.lecina [at]michael.atchison [at]michael.kirzinger [at]brooke.hubert

#rb Rafa.Lecina

[CL 32708500 by lorry li in ue5-main branch]
2024-04-03 15:44:58 -04:00

23 lines
658 B
Bash
Executable File

if [ ! -d "env" ]; then
case "$OSTYPE" in
darwin*)
../../../Binaries/ThirdParty/Python3/Mac/bin/python3 -m venv env
;;
*)
# For daphne4.0.0 -> ImportError: libffi.so.6: cannot open shared object file: No such file or directory
curl -LO http://archive.ubuntu.com/ubuntu/pool/main/libf/libffi/libffi6_3.2.1-8_amd64.deb
sudo dpkg -i libffi6_3.2.1-8_amd64.deb
../../../Binaries/ThirdParty/Python3/Linux/bin/python3 -m venv env
;;
esac
fi
. ./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