Last active
August 29, 2015 14:07
-
-
Save pdarragh/e215e3a6a462af8efedd to your computer and use it in GitHub Desktop.
Install Python3 and Pygame via Homebrew on OS X
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### | |
## I do not guarantee that this works. Use at your own risk. | |
## I am *fairly* certain that these are all the steps I took to get Python3 and Pygame | |
## installed on OS X, but I may be forgetting something. | |
#### | |
# Install Homebrew | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew doctor | |
# Install Tcl/Tk Dependency | |
brew install homebrew/dupes/tcl-tk | |
brew tap --repair | |
# Install Python3 | |
# I'm pretty sure there was another argument that had to be passed for it to work properly... | |
brew install python3 --with-brewed-tk --with-brewed-openssl | |
# Activate .app bundles (e.g. IDLE) | |
brew linkapps | |
# Install Pygame Dependencies | |
brew install mercurial | |
brew install git | |
brew install sdl sdl_ttf sdl_image sdl_mixer portmidi | |
# Install XQuartz | |
Go to: http://xquartz.macosforge.org/landing/ and install the most recent version of XQuartz. (Download the .dmg, double-click it, double-click the .pkg, follow the instructions.) | |
# Install smpeg dependency | |
brew tap homebrew/headonly | |
brew install --HEAD smpeg | |
# Install Pygame | |
/usr/local/share/python3/pip install hg+http://bitbucket.org/pygame/pygame | |
#### | |
## SOURCES | |
#### | |
http://brew.sh/ | |
http://florian-berger.de/en/articles/installing-pygame-for-python-3-on-os-x/ | |
http://xquartz.macosforge.org/landing/ | |
https://github.com/Homebrew/homebrew/issues/16574 | |
https://github.com/Homebrew/homebrew/issues/18244 | |
http://stackoverflow.com/questions/19614518/homebrew-no-formula-for-smpeg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment