[macos] enable python3 (and pipx) on macOS13 (#7599)

This commit is contained in:
ilia-shipitsin
2023-05-18 09:21:55 +02:00
committed by GitHub
parent 4ca86478ee
commit f2b1fa1399
4 changed files with 38 additions and 24 deletions

View File

@@ -3,14 +3,16 @@ source ~/utils/utils.sh
echo "Installing Python Tooling"
echo "Install latest Python 2"
Python2Url="https://www.python.org/ftp/python/2.7.18/python-2.7.18-macosx10.9.pkg"
download_with_retries $Python2Url "/tmp" "python2.pkg"
sudo installer -pkg /tmp/python2.pkg -target /
pip install --upgrade pip
if ! is_Veertu; then
echo "Install latest Python 2"
Python2Url="https://www.python.org/ftp/python/2.7.18/python-2.7.18-macosx10.9.pkg"
download_with_retries $Python2Url "/tmp" "python2.pkg"
sudo installer -pkg /tmp/python2.pkg -target /
pip install --upgrade pip
echo "Install Python2 certificates"
bash -c "/Applications/Python\ 2.7/Install\ Certificates.command"
echo "Install Python2 certificates"
bash -c "/Applications/Python\ 2.7/Install\ Certificates.command"
fi
# Close Finder window
if is_Veertu; then