Update soundrts to work with python 3.12 and later
This commit is contained in:
parent
c7f4f546d8
commit
24a5a38e79
@ -818,10 +818,13 @@ case "${game}" in
|
|||||||
check_dependencies python3
|
check_dependencies python3
|
||||||
mkdir -p "${installPath}"
|
mkdir -p "${installPath}"
|
||||||
git -C "${installPath}" clone "https://github.com/soundmud/soundrts.git"
|
git -C "${installPath}" clone "https://github.com/soundmud/soundrts.git"
|
||||||
git -C "${installPath}/soundrts" checkout v1.3.7
|
git -C "${installPath}/soundrts" checkout v1.3.8
|
||||||
sed -i 's;git+https://github.com/soundmud/accessible_output2;accessible_output2;' "${installPath}/soundrts/requirements.txt"
|
sed -i 's;git+https://github.com/soundmud/accessible_output2;accessible_output2;' "${installPath}/soundrts/requirements.txt"
|
||||||
python3 -m venv --system-site-packages "${installPath}/soundrts/.venv"
|
python3 -m venv --system-site-packages "${installPath}/soundrts/.venv"
|
||||||
"${installPath}/soundrts/.venv/bin/"pip3 install -r "${installPath}/soundrts/requirements.txt"
|
"${installPath}/soundrts/.venv/bin/"pip3 install -r "${installPath}/soundrts/requirements.txt"
|
||||||
|
if [ $(python3 --version | cut -d. -f2) -ge 12 ] ; then
|
||||||
|
"${installPath}/soundrts/.venv/bin/"pip3 install pyasyncore pyasynchat
|
||||||
|
fi
|
||||||
chmod +x "${installPath}/soundrts/soundrts.py"
|
chmod +x "${installPath}/soundrts/soundrts.py"
|
||||||
sed -i '1c\#!'"${installPath}/soundrts/.venv/bin/python3" "${installPath}/soundrts/soundrts.py"
|
sed -i '1c\#!'"${installPath}/soundrts/.venv/bin/python3" "${installPath}/soundrts/soundrts.py"
|
||||||
add_launcher "${installPath}/soundrts/soundrts.py"
|
add_launcher "${installPath}/soundrts/soundrts.py"
|
||||||
|
Loading…
Reference in New Issue
Block a user