http://blaolao.com/setting-up-django-mysql-mysql-python-pil-etc
One of these days I would like to make a DMG that sets up
everything for the user. If anyone would be interested in a DMG single
setup executable please let me know and maybe I will make it a weekend
project.
One of these days I would like to make a DMG that sets up
everything for the user. If anyone would be interested in a DMG single
setup executable please let me know and maybe I will make it a weekend
project.
I use brew (http://github.com/mxcl/homebrew) instead of MacPorts.
IIRC, I had to install git first, but everything else is installed
view brew, without the requirements of sudo, which makes a nice
change.
You can even have it so that it installs python modules/ruby gems in
the same manner.
Matt.
A couple of points:
1. I found that:
sudo easy_install mysql-python
worked well, which saves a bit of editing and compiling.
2. Using this (at least with fastcgi) is problematic, because the
webserver user ("_www" on OSX) tries to write eggs to locations in
which it lacks permissions. I guess the solution is to add the
following:
os.environ['PYTHON_EGG_CACHE'] = "..."
to the fastcgi script, in which the ... is replaced with something
that is sensible and safe. But I'm not too sure what is sensible
(e.g. things in /tmp get erased by cron jobs) and I certainly have no
idea what is safe, so I punted and switched to sqlite3, which seems to
work well.
3. A DMG would be terrific.
Thanks much for posting this.