tisdag 20 april 2010

Setting up Mac OS X Snow Leopard for Plone development Part 1

Note to self; don't run around the internet for several days next time you need to setup a workstation for Plone development. So, here are the steps I've taken.


First, as always, do a selfupdate of the macports.
> sudo port selfupdate && sudo port upgrade outdated

!!! The section below is not correct! Please see the post that is Part 3 of my instruction before going any further!!!

Get Python 2.4
> sudo port install python24 python_select
> sudo python_select python24

!!! From here and on, the steps are correct !!!

Get wget
> sudo port install wget

Get easy_install
> wget http://peak.telecommunity.com/dist/ez_setup.py

Install easy_install.
> sudo python2.4 ez_setup.py

To reinstall setuptools (which shouldn't be necessary in most cases), remove the installed package and reinstall it. Thus;
> sudo rm -rf /opt/local/lib/python2.4/site-packages/setuptools-0.6c11-py2.4.egg
> sudo python2.4 ez_setup.py -U setuptools

Now, install ZopeSkel
> sudo easy_install -U ZopeSkel

And you're ready to go! The "paster" tool should be installed (try running "paster create --list-templates"), which is the template engine for creating Plone things.

Inga kommentarer: