Sunday, February 28, 2010

Snow Leopard and Zope3

I've been required to revisit an old zope application built using buildout. The application versions are quite old (3.4.* mostly) and includes old dependencies such as lxml-1.3.1, ZODB3-3.8 amongst others.

As the buildout was running I noticed compile errors and finally it would grind to a halt when import say `_zope_proxy_proxy` which is a compiled .so file.

To cut a long story short the solution for me was to edit `lib/python2.6/config/Makefile` (naturally this is within a `virtualenv`) and change the lines:

CC= /usr/bin/gcc-4.2
CXX= /usr/bin/g++-4.2

to read:

CC= /usr/bin/gcc-4.0
CXX= /usr/bin/g++-4.0

No comments: