Revert "Remove pre-installed Python"

This reverts commit 6f22c0897b530928ed235a8eff784d1bd28a7343.
This commit is contained in:
LordGrey 2024-12-08 20:29:11 +01:00
parent e0aa629385
commit c03998e53f

View File

@ -122,12 +122,10 @@ jobs:
echo '::group::Install official Python'
# We need the official Python, because the GA ones only support newer macOS versions
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
sudo installer -pkg ${{ github.workspace }}/python.pkg -target /
sudo installer -verbose -pkg ${{ github.workspace }}/python.pkg -target /
python3 --version
echo '::endgroup::'