Categories
Random observations

Mod_python for the Mac

In case anyone’s interested, I’m making available a pre-built universal binary of mod_python 3.3.1 for Apache 2.2.8. I’m running Mac OS X Leopard 10.5.2 and Python 2.5.1. The DMG contains an installer package, and it will try to install mod_python to /usr/libexec/apache2, which is where the other apache modules are usually located. Use at your own risk.

You can download it here.

By ricky

Husband, dad, R&D manager and resident Lean Startup evangelist. I work at NICTA.

2 replies on “Mod_python for the Mac”

I hope you used the source code from subversion trunk for mod_python. Most instructions on the net for trying to build mod_python under MacOS X are incomplete. One has to modify more than just the src/Makefile to add additional architecture flags. One also has to edit the Python build scripts for the Python C extension modules that mod_python produces and practically all the instructions out there don’t tell you this. All these changes are necessary because otherwise a fat binary isn’t produced and thus will not work on 64 bit processors used by Apple.

BTW, unless you are stuck with code which will only work mod_python APIs, you are better off using mod_wsgi these days. :-)

Leave a Reply

Your email address will not be published. Required fields are marked *