mod_wsgi is already packaged for OpenSolaris 2008.11 by the Roboporter, but it is in a package repository that is not enabled by default (the pending and contrib repositories). These repositories provide many more packages than the standard release repository.
Below is the default repository:
$ pkg authority
AUTHORITY URL
opensolaris.org (preferred) http://pkg.opensolaris.org/release/
In order to get mod_wsgi on OpenSolaris, we need to enable the pending repository.
$ pfexec pkg set-authority -O http://pkg.opensolaris.org/pending pending
We can now see the pending repository show up:
$ pkg authority
AUTHORITY URL
pending http://pkg.opensolaris.org/pending/
opensolaris.org (preferred) http://pkg.opensolaris.org/release/
Now if we refresh the list
$ pfexec pkg refresh
we can install mod_wsgi
$ pfexec pkg install mod-wsgi
We should now see the library in /usr/apache2/2.2/libexec/mod_wsgi.so.
The final step is to create a configuration file so that Apache knows what to do. The modwsgi.org website has comprehensive information on getting started.