Revert "Remove system python"

This reverts commit 37b17877ed2711b37ae24c47f835d436ebe3839f.
This commit is contained in:
LordGrey 2024-12-08 20:29:11 +01:00
parent 71577a21df
commit e0aa629385

View File

@ -122,7 +122,8 @@ jobs:
echo '::group::Install official Python'
# We need the official Python, because the GA ones only support newer macOS versions
sudo rm -rf /Library/Frameworks/Python.framework/Versions/3* /usr/local/Frameworks/Python.framework/Versions/3* /usr/local/bin/python3* || true
find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
sudo rm -rf /Library/Frameworks/Python.framework/
# export PYTHON_VERSION=$(python3 --version | cut -d' ' -f2)
export PYTHON_VERSION=3.12.7
wget -qO ${{ github.workspace }}/python.pkg https://www.python.org/ftp/python/${PYTHON_VERSION}/python-${PYTHON_VERSION}-macos11.pkg