Dave Warnock wrote:
Hi,
I want to develop/run TurboGears applications using the releases. But on
the same machine I want to be able to test them against the trunk and
potentially contribute to the trunk.
If I understand http://www.turbogears.org/community/contributing.html
correctly then to use the trunk version I
a) checkout turbogears trunk from svn
b) run "python setup.py develop" on the checked out copy
c) when I run any project that imports turbogears it now uses the
checked out copy
Once I have done this how do I go back to a live application and run it
on the released version of TurboGears?
You can usually just easy_install the old version, and it will change
the .pth files but otherwise not install anything new.
If TG has some sort of require option that could be invoked early, then
you could use a different invocation to require the version of TG that
you want to use. This would be a nice feature for the scripts that
easy_install installs in general -- right now they require a fixed
version, but if they (say) checked an environmental variable for a
version override that would be cool. Then you could support multiple
versions running at once (each in its own process, of course).
(And incidentally with Paste you'd do paster --plugin=TurboGears==0.5
serve ..., or include the version number in your app's install_requires,
or in your Paste Deploy configuration file.)
--
Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org