-
-
Save AndersonFirmino/7cb810b6569059655f20 to your computer and use it in GitHub Desktop.
A script to install Pygame 1.9.1 into a Python2.7 virtualenv on Ubuntu 12.04. Make sure you have activated the virtualenv before running this script or it will install Pygame system-wide.
This file contains 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
#!/bin/sh | |
BASE_PATH=`pwd` | |
sudo apt-get build-dep python-pygame | |
sudo apt-get install python-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libsmpeg-dev python-numpy subversion libportmidi-dev ffmpeg libswscale-dev libavformat-dev libavcodec-dev libv4l-dev | |
cd /usr/include/linux | |
sudo ln -s ../libv4l1-videodev.h videodev.h | |
cd $BASE_PATH | |
wget http://www.pygame.org/ftp/pygame-1.9.1release.tar.gz | |
tar -xzf pygame-1.9.1release.tar.gz | |
cd pygame-1.9.1release | |
python config.py | |
sudo python setup.py install | |
cd $BASE_PATH | |
rm pygame-1.9.1release.tar.gz | |
sudo rm -rf pygame-1.9.1release |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment