Plone on OSX
Setting up a new Mac for Plone development? Read on...
Binary Applications
| Skype: | |
|---|---|
| Quicksilver: | http://quicksilver.blacktree.com/ or better yet, the Apple site |
| Firefox: | |
| Firebug: | |
| Web Developer Toolkit: | |
| Text Editor: | TextMate, BBEdit, TextWrangler, SubEthaEdit, whatever you like |
| Subversion: | http://downloads.open.collab.net/binaries.html
|
| IRC client: | Colloquy |
| Glimpse: | http://plone.org/documentation/how-to/how-to-quickly-search-zope-plone-code-using-glimpse |
Utilities
| MacPorts: | http://www.macports.org/ |
|---|---|
| readline: | http://readline.darwinports.com/ |
Python
- Make sure you have readline, then get the latest Plone supported Python (currently 2.4.4) at http://www.python.org/download/
Setup:
sudo ./configure
Edit the makefile:
CC= gcc
becomes:
CC= gcc -I/opt/local/include -L/opt/local/lib
Then compile:
sudo make sudo make test (if you're so inclined) sudo make altinstall
We do 'altinstall' because python 2.3.5 is already added to OS <= 10.5.x at /usr/bin/python, and python 2.5.x is already added to OS X 10.5.x
add "/usr/local/bin" to your path type "pythonX.X -V" to verify
NB - If you follow these steps, it seems you do *not need to easy_install readine - in fact, the egg retrieved by easy_install doesn't seem to work, at least on Leopard. Once I removed the egg, I was able to import readline:
>>> import readline
>>> import rlcompleter
>>> readline.parse_and_bind('tab: complete')
NB again: Leopard's python2.5 is funky. If you want tab completion in python2.5 (virtualenv or otherwise) you need this instead:
>>> import rlcompleter
>>> import readline
>>> readline.parse_and_bind ("bind ^I rl_complete")
| wget: | http://wget.darwinports.com/ |
|---|---|
| FreeType2: | http://freetype.darwinports.com/ |
| jpeg: | http://jpeg.darwinports.com/ |
| EasyInstall ez_setup.py: | |
| http://peak.telecommunity.com/DevCenter/EasyInstall#installing-easy-install | |
Install this into your Plone's python:
sudo python2.4 ez_setup.py
| install prerequisites for zc.buildout: | |
|---|---|
| http://plone.org/documentation/tutorial/buildout/prerequisites | |
You will already should have which easy_install in path Install elementtree:
sudo easy_install-2.4 elementtree
pdb readline support (tab autocompletion):
sudo easy_install-2.4 readline (maybe not! see above)
create a file named .pdbrc in your home folder with the following contents:
import rlcompleter pdb.Pdb.complete = rlcompleter.Completer(locals()).complete
(see http://tomster.org/blog/archive/2006/10/09/pdp-tab-completion)
PIL
Get it and install in your Plone's python:
wget http://effbot.org/downloads/Imaging-1.1.6.tar.gz tar -xzvf Imaging-1.1.6.tar.gz cd Imaging-1.1.6 sudo python2.4 setup.py install
Plone 2.5.x setup
| Good how-to: | http://plone.org/documentation/how-to/setup-from-source |
|---|
Download Zope2.9.7 (2.9.8 is probably also fine) - http://www.zope.org/Products/Zope/2.9.7/Zope-2.9.7-final.tgz
unpack, cd into Zope2.9.7 directory:
./configure --prefix=/usr/local/zope/zope-2.9.7 --with-python=/usr/local/bin/python2.4

