[SQLObject] Fresh Python for Rotting Web Hosts
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: David M. <da...@re...> - 2004-03-04 09:23:28
|
Hi all, While working on my (yet another) python-based active web framework, I hit on a dilemna. I want my framework to be deployable on as wide a range of hosts as possible, even the < $10/month type hosts (the ones with the latest PHP, MySQL, but pitiful or no Python support). Such el-cheapo hosts these days often offer 40MB-100MB or more of disk space, but will not upgrade their python to later than 2.1 (or worse, 1.5.2), or install needed modules (eg MySQLdb). The dilemna was whether to simply list python2.2 as a requirement (which SQLObject needs), but which excludes more than 90% of cheap hosts. OR Switch to Metakit instead, but cope with a bunch of performance-draining concurrency issues. The solution I came up with is a simple recipe for compiling Python 2.3 or later on a local machine, and uploading the full binary Python tree to the host into one's user account (after some radical liposuction to trim the Python tree from 50+MB to more like 12MB). All written up at: http://www.freenet.org.nz/python/fresh-python-for-rotting-web-hosts.html Walks the user through the steps of building Python, in such a way as it can run within a user's home directory on a cheap host. So, with this particular problem solved, I've gone firmly in the SQLObject direction. Hope others might find some value in this too. -- Kind regards David -- leave this line intact so your email gets through my junk mail filter |