CoderDojoLu / BBQjam

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#Installing py-game for python3

##OSX

###Install HomeBrew

ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

###Install dependencies

brew install python3 mercurial git sdl sdl_image sdl_mixer sdl_ttf portmidi
brew tap homebrew/headonly
brew install --HEAD smpeg
/usr/local/bin/pip3 install hg+http://bitbucket.org/pygame/pygame

##Linux

sudo apt-get install mercurial
sudo apt-get install python3-dev python3-numpy libsdl-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsmpeg-dev libportmidi-dev libavformat-dev libswscale-dev libjpeg-dev libfreetype6-dev
hg clone https://bitbucket.org/pygame/pygame
cd pygame
python3 setup.py build
sudo python3 setup.py install

using pip (currently not working due to C90 non-compliance)

sudo apt-get install mercurial
sudo apt-get install python3-dev python3-numpy libsdl-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsmpeg-dev libportmidi-dev libavformat-dev libswscale-dev libjpeg-dev libfreetype6-dev
pip install hg+https://bitbucket.org/pygame/pygame

##Windows

#Testing it all out

python3
>>> import pygame
>>> pygame.init()
(6, 0)
>>> pygame.display.set_mode((800, 600))
<Surface(800x600x32 SW)>
>>> raise SystemExit

#IDE (Integrated Development Environments)

OR a standalone py-dev version called LiClipse (Beta as of August 2014)

#CodeEditors

About


Languages

Language:Python 100.0%