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.
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. :-)
[…] my previous entry about mod_python. Just use mod_wsgi. It compiles without issues on the Mac (unlike mod_python, […]