Skip to content

Instantly share code, notes, and snippets.

View tariqk's full-sized avatar

Tariq Kamal tariqk

View GitHub Profile
@brousch
brousch / install_pygame.sh
Last active August 19, 2018 14:39
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.
#!/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