Do I need to spin up multiple apache instances, each with a mod_wsgi
module complied for a different version of Python?
Would it be possible (perhaps in the future) to compile a single
mod_wsgi module for multiple versions of Python or have the ability
load multiple mod_wsgi modules, one for each Python version, into a
single Apache instance? Then, maybe there could be a configuration
option or parameter to WSGIDaemonProcess to specify which version to
use.
Gary
Correct.
> What would be the
> best way to go about supporting multiple Python versions with
> mod_wsgi?
> Do I need to spin up multiple apache instances, each with a mod_wsgi
> module complied for a different version of Python?
Yes, you would have to have multiple Apache installations.
> Would it be possible (perhaps in the future) to compile a single
> mod_wsgi module for multiple versions of Python or have the ability
> load multiple mod_wsgi modules, one for each Python version, into a
> single Apache instance? Then, maybe there could be a configuration
> option or parameter to WSGIDaemonProcess to specify which version to
> use.
Some thought has been given to that, but non trivial. First off it
means no longer supporting embedded mode. Secondly, it means having to
have a separate monitor process for each Python version, rather than
having Apache parent process do it. That presumes of course that same
fork model is used. The alternative is to use fork/exec model and
defer loading Python until exec, but then you would just have FASTCGI.
So, if running multiple Apache installations is an issue, it may be
easier for you to use FASTCGI solutions instead.
Graham