# Installation

cocos is a pure python package

1. Install python 2.6, python 2.5 or python 2.4 For python 2.4 you will need two extra packages:

   > - ctypes
   > - elementtree

2. 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.

3. Download the last version from http://code.google.com/p/los-cocos/ or PyPI, unpack to some temporal dir and cd to it

4. Finally, choose one of the followings:

   > - run:

   >       setup.py install

   > - or copy "cocos" to your project:

   >       $ cp -r cocos $PROJECT_HOME

   > - or include cocos in your PYTHONPATH:

   >       $ export PYTHONPATH=$PYTHONPATH:/path/to/cocos

   > - or insert cocos in sys.path:

   >       import sys
   >       sys.path.insert(0, PATH_TO_COCOS))