# 安装homebrew https://brew.sh/index_zh-cn
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# https://blog.csdn.net/Monty111/article/details/77994583
brew install sdl sdl_image sdl_mixer sdl_ttf portmidi
# https://www.pygame.org/wiki/GettingStarted
python3 -m virtualenv anenv
. ./anenv/bin/activate
# venvdotapp helps the python be a mac 'app'. So the pygame window can get focus.
python -m pip install venvdotapp
venvdotapp
python -m pip install pygame
# See if pygame works with the oo module, and the aliens example.
python -m pygame.examples.aliens