Revert "pass three-digit python version"

This reverts commit 12048b572bd47a2bee3081615823ae40324df47f.
This commit is contained in:
LordGrey 2024-12-08 20:29:11 +01:00
parent c700d201b1
commit ba30614177

View File

@ -122,9 +122,9 @@ jobs:
echo '::group::Install official Python'
# We need the official Python, because the GA ones only support newer macOS versions
export PYTHON_VERSION=$(python3 --version | cut -d' ' -f2)
wget -O ${{ 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 /
export PYTHON_VERSION=$(python3 --version | cut -d' ' -f2 | cut -d'.' -f1,2)
wget https://www.python.org/ftp/python/${PYTHON_VERSION}/python-${PYTHON_VERSION}-macos11.pkg
sudo installer -pkg ./${PYTHON_VERSION}/python-${PYTHON_VERSION}-macos11.pkg -target /
python3 --version
echo '::endgroup::'