What's the best way to install mod-wsgi for a specific version of python (2.7) on Debian (squeeze)?
- by Pascal Polleunus
System info:
Debian Squeeze
Python versions: 2.6.6 (default) & 2.7.2
mod-wsgi: 3.3-2
in /usr/lib/apache2/modules:
mod_wsgi.so -> mod_wsgi.so-2.6
mod_wsgi.so-2.5
mod_wsgi.so-2.6
I've a virtualenv configured with Python 2.7 but my application runs 2.6.6, apparently because mod-wsgi is using the default version of the system.
The way to go seems to configure mod-wsgi to use 2.7 (i.e. system-wide, not specific to a virtualenv).
How can I install mod_wsgi.so-2.7?
After installing that, I'll just have to change the symlink mod_wsgi.so to mod_wsgi.so-2.7.