Dan Yamins
dyamins at gmail.com
Sun Mar 8 23:16:55 EDT 2009
> > Use source code for mod_python from mod_python subversion repository > as that version includes all MacOS X Leopard fixes. > Graham, thanks for your quick reply. I already tried this, actually, as one of the pages I found said that the svn trunk had the fixes in it. However, I wasn't able to get anywhere with this approach since I couldn't compile the code I got from trunk. If you're interested in the error it was, at the "make stage: " daniel-yaminss-macbook-pro:mod_python-trunk danielyamins$ make Compiling for DSO. <snip ...> /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyport.h:761:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)." lipo: can't figure out the architecture type of: /var/folders/RL/RL57YSioGTWoMJh4O1-SFk+++TI/-Tmp-//ccKJqCJ6.out apxs:Error: Command failed with rc=65536 . make[1]: *** [mod_python.so] Error 1 make: *** [do_dso] Error 2 " I decided not to follow up on this, but if it's the only way to get the fixes, I'll try to figure it out. >Even better, if you are only wanting to host an application that >support WSGI interface and not using mod_python specific APIs, use >mod_wsgi instead. Pretty well all Python web applications and >frameworks support WSGI interface these days and mod_wsgi is arguably a better solution these days Well -- here is what I want to do -- tell me if mod_python is the right solution -- perhaps I'm barking up the wrong tree entirely. I've built an application currently using CGI. It's quite slow, in part because each request to the application requires the importation of a number of fairly heavy modules. (e.g. it will take 3-4 secs to load the page not because of the dynamic code running in each cgi module but because of the overhead of having to restart python interpreter and reload all the modules the code uses). I was hoping using mod_python as a way to not have to restart the python interpreter. But maybe mod_wsgi is the right thing? Sorry for my ignorance, and happy to switch approaches if wsgi would be better for my need. thanks, Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20090308/de22f4f9/attachment.html
|