cocos is a pure python package
Install python 2.6, python 2.5 or python 2.4 For python 2.4 you will need two extra packages:
Install pyglet 1.1.4 or newer from pyglet's homepage . If you want to use pyglet 1.0, use cocos2d v0.1.x instead.
Download the last version from http://code.google.com/p/los-cocos/ or PyPI, unpack to some temporal dir and cd to it
Finally, choose one of the followings:
run:
setup.py installor copy "cocos" to your project:
$ cp -r cocos $PROJECT_HOMEor include cocos in your PYTHONPATH:
$ export PYTHONPATH=$PYTHONPATH:/path/to/cocosor insert cocos in sys.path:
import sys sys.path.insert(0, PATH_TO_COCOS))