Tuesday, June 16, 2009

Buildout with python2.4

I've got to write this down before I forget. With the newer distros, python 2.5 or 2.6 is the default python version of choice. But plone and zope currently still use python 2.4. And if you want buildout goodness you have to get buildout working with python 2.4. So if you're on ubuntu, first install these packages:

python2.4
python2.4-dev

And then google for ez_setup.py. Download it. Then run in your terminal:

abdullah@codebase:/$ sudo python2.4 ez_setup.py

That would install the 2.4 version of easy_install. Then to install buildout you just have to do like so:

abdullah@codebase:/$ sudo easy_install-2.4 zc.buildout

That would install buildout into your system. And then inside your plone or zope folder run:

abdullah@codebase:~/taskmanager$ buildout init

That would create a local instance of buildout for you to run specifically for your app. All eggs will be downloaded into that folder and would not pollute your system. To run the app specific buildout just do a :

abdullah@codebase:~/taskmanager$ bin/buildout -vvvv

That would run the local buildout. I just like it very very very very verbose.. :P

update: Sarogini found a link which deals with the problem of developing plone on ubuntu 9.04 in a more comprehensive manner here.

No comments:

Haiya ala Solah