How to install multiple TRAC versions on Windows

572 views Asked by At

We have been using TRAC 0.11.1 for quite some time now and have a lot of projects running with it. Now we are facing a migration to a new server and would like to start using TRAC 0.12.2.

Of course migrating all 0.11.1 projects to 0.12.2 would be possible, but would also be a lot of work while a lot of them only remain for reference. For new projects, we would like to benefit from the new functionality in 0.12.2.

So, we would like to combine a 0.11 installation to maintain the existing projects and start using 0.12 for the new projects. We run Python 2.6.6 on Windows with mod_wsgi in Apache. We have studied a solution on the TRAC website, but it is for Linux. Also information on the mod_wsgi wiki (http://code.google.com/p/modwsgi/wiki/IntegrationWithTrac) seems to work only on Linux, as it uses a daemon mode which is not available on Windows.

Anybody has suggestions how to use both TRAC 0.11 and 0.12 on the same Python installation on Windows?

1

There are 1 answers

6
alexandrul On
  • install both versions of Trac outside of the Python environment (like c:\trac\11 and c:\trac\12)
  • define separate virtual hosts for each group of projects
  • in each virtual host at the beginning of each .wsgi alter the path like:

.

import os
import sys
sys.path.insert(0, 'c:/trac/11')
# sys.path.insert(0, 'c:/trac/12')

I'm currently using this method for Django (on Apache + mod_wsgi)