Cyn.in Developer Guide

Cyn.in Developer Guide

Quick steps to follow to setup your own cyn.in buildout developer environment

Quick Start Steps

  1. Setup system-wide dependencies using your linux distro's package manager
  2. Setup a python virtualenv to host cyn.in buildout
  3. Install python dependencies to your VirtualEnv
  4. Do Bootstrap
  5. Do Buildout

Cyn.in Dependency installation using Package Managers

Ubuntu 8.0.4 (Hardy)

sudo apt-get build-dep python-ldap python-lxml

sudo apt-get install build-essential gcc g++ libc6-dev libssl-dev zlib1g-dev libjpeg62-dev libreadline5-dev readline-common wv python2.4-dev poppler-utils python-imaging python-libxml2 libxml2-dev libxslt1-dev subversion libdb4.4-dev libldap2-dev libsasl2-dev libssl-dev python-ldap python-setuptools

Ubuntu 8.1.0 (Intrepid) and Debian 5.0 (Lenny)

sudo apt-get install build-essential gcc g++ libc6-dev libssl-dev zlib1g-dev libjpeg62-dev libreadline5-dev readline-common wv python2.4-dev poppler-utils python-imaging python-libxml2 libxml2-dev libxslt1-dev subversion libsasl2-dev libssl-dev python-ldap libdb-dev libldap2-dev python-setuptools

Ubuntu 9.0.4 (Jaunty)

sudo apt-get install build-essential libssl-dev libjpeg62-dev libreadline5-dev wv  libxml2-dev libxslt1-dev libsasl2-dev poppler-utils libdb4.4-dev libldap2-dev python2.4-dev

Make a new virtualenv for your login

After getting dependencies using your package manager, checkout any cyninsrc branch/trunk. From this, you'll find a file, ez_setup.py, you have to run this to install easy_install:

sudo python2.4 ez_setup.py

Next, we install virtualenv which will be used for installing required python dependencies of cyn.in:

sudo easy_install-2.4 virtualenv

Lets start by making a virtualenv based virtual python environment for our own usermode python installation:

virtualenv --python=python2.4 -v --no-site-packages ~/venv

This makes a local python install at ~venv which we will now use to do the buildout. First we need to easy_install the dependencies.

Install python dependencies to your VirtualEnv

Use this concatenated command that will easy_install all dependencies together.

~/venv/bin/easy_install-2.4 ZopeSkel && ~/venv/bin/easy_install-2.4 lxml && ~/venv/bin/easy_install-2.4 python-ldap && ~/venv/bin/easy_install-2.4 -i http://dist.serverzen.com/pypi/simple PILwoTk

Do Bootstrap

That's it for the dependencies, you're ready to do the buildout, just take care to use the venv python2.4 instead of the system-wide one.

cd to your buildout directory (it must have bootstrap.py and buildout.cfg in it) and:

~/venv/bin/python2.4 bootstrap.py

Do Buildout

Now you can proceed as normal by running your buildout as always:

./bin/buildout -c user.cfg