Remove system python

This commit is contained in:
Paulchen-Panther 2024-11-30 15:19:16 +01:00 committed by GitHub
parent 6f22c0897b
commit 37b17877ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -122,8 +122,7 @@ 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/
sudo rm -rf /Library/Frameworks/Python.framework/Versions/3* /usr/local/Frameworks/Python.framework/Versions/3* /usr/local/bin/python3* || true
# 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