Skip to content

Commit

Permalink
Install python2 from archive. (facebook#2542)
Browse files Browse the repository at this point in the history
* Install python2 from archive.

* Fixed an python3 installation error.

Co-authored-by: v-jizhang <[email protected]>
  • Loading branch information
Jinlin Zhang and buck-bot authored Sep 22, 2020
1 parent 2ab66a9 commit e5f9062
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,11 @@ jobs:
name: Reinstall Python2
command: |
brew uninstall python@2 || echo "python2 was not installed."
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/86a44a0a552c673a05f11018459c9f5faae3becc/Formula/[email protected]
url=https://www.python.org/ftp/python/2.7.17/python-2.7.17-macosx10.9.pkg
curl -R -L -O $url
sudo installer -pkg python-2.7.17-macosx10.9.pkg -target /
# 2to3 causes python3 installation to fail, delete it.
rm -f /usr/local/bin/2to3
- run:
<<: *install_python
- run:
Expand Down

0 comments on commit e5f9062

Please sign in to comment.