Upgrading to SVN

0 views
Skip to first unread message

engie

unread,
Jan 15, 2006, 2:14:23 PM1/15/06
to TurboGears
The prospects of identity management and all the other goodies in 0.9
have tempted me into grabbing the SVN version. How do I go about
installing this?

The setup.py depends on cherrypy>2.1.1 - not available on the cherrypy
website. I can comment out this line and install cherrypy from their
SVN, although I'm not sure if this is healthy! I note there is a
cherrypy in the thirdparty directory, however even if I install this
then the turbogears setup.py chokes when it can't download the
cherrypy>2.1.1 off the web.

Also, how do I remove my 0.88 installation? Other than just keeping the
system cruft-free, I note that tg-admin still points to the 0.8.8
version. Is there a recommended way of fixing this?

As an aside, would information on how to do this installation be
suitable for inclusion as a INSTALL file in the root of the SVN tree?

Thanks,

engie

odo...@gmail.com

unread,
Jan 15, 2006, 2:42:24 PM1/15/06
to TurboGears
I'm in a similar situation of wanting to use the trunk version of TG,
but not finding docs, and seeing a mix of suggestions in the forums.
Could a TG veteran please tell us the one true way to deploy from svn,
and also update the doc? Thanks.

Sean De La Torre

unread,
Jan 15, 2006, 2:49:54 PM1/15/06
to TurboGears
Engie,

The SVN installation instructions are located here:
http://www.turbogears.com/community/contributing.html

To solve the Cherrypy dependency issue, do the following before
installing the SVN version of TG:
1) checkout the latest version of the TG trunk
2) from the command line, navigate to the <svn_root>/thirdparty/cherrpy
directory
3) issue the following command: "easy_install ." (don't include the
quotes)

After this completes successfully, navigate back to the svn root and
proceed with the installation as specified in the link I posted above.


The tg-admin utility should point to the correct TG version after the
new code has been successfully installed. You can also delete the old
.88 folder after the new TG version is working correctly.

Sean

engie

unread,
Jan 15, 2006, 2:51:37 PM1/15/06
to TurboGears
Thanks Sean. I found that the new install didn't overwrite the tg-admin
in /usr/local/bin/ which (on ubuntu) takes precedence - I deleted this
and it's fine.

Thanks again,

engie

Karl Guertin

unread,
Jan 15, 2006, 3:28:26 PM1/15/06
to turbo...@googlegroups.com
On 1/15/06, odo...@gmail.com <odo...@gmail.com> wrote:
> I'm in a similar situation of wanting to use the trunk version of TG,
> but not finding docs, and seeing a mix of suggestions in the forums.

There is only one way to install. The instructions you see that pop up
are notices that the dependencies are being moved around. If you're
following along with the trunk, that means changes on your part if you
want things to continue working.

haroldmarshall

unread,
Jan 15, 2006, 11:40:26 PM1/15/06
to TurboGears
Unfortunately, most statements that begin with, "There is only one
way," prove to be wrong, no matter how well intentioned the advice may
be.

Some of us are still in the learning stage, and having to check out
daily versions using SVN is time-consuming and inconvenient at best.
Many are not yet at the level where we may be expected to be checking
in patches, plugins, etc. and having to deal with SVN is an unnecessary
hindrance. It is, however, very important to be trying out the latest
development version while learning from what is posted on the mailing
list. Using an old version just doesn't cut it. So what's the answer
for a "lazy" learner?

Early on, when I was just becoming aware of TurboGears, I was lucky
enough to have come across a similar question to this: "How to Install
>From Nightly egg builds"
http://groups.google.com/group/turbogears/browse_thread/thread/d083ff5faf8a5f90

This may not be the "preferred" way or even the "best" way, but it is
ANOTHER way to keep more or less up to date. The latest TurboGears egg
is installed with:
easy_install -f http://www.opensource4you.com/nightly_tarballs.shtml
TurboGears
Some additional development packages are available on the
opensource4you.com site as well, but as a back-up, "nightly" tar files
of the TurboGears trunk are there too, so you can update Cherrypy, for
instance. There are ocassional "glitches", but that's life, and it
keeps you on your toes...The site has continued to provide a valuable
service to the TurboGears community.

I'm sorry to be critical, but again, there is never "only one way".

Harold Marshall

haroldmarshall

unread,
Jan 15, 2006, 11:44:52 PM1/15/06
to TurboGears

Karl Guertin

unread,
Jan 16, 2006, 12:01:12 PM1/16/06
to turbo...@googlegroups.com
On 1/15/06, haroldmarshall <haroldm...@gmail.com> wrote:
> I'm sorry to be critical, but again, there is never "only one way".

Sorry, I meant that 'There is only one obvious way to do it' ;]

Lior

unread,
Jan 17, 2006, 5:27:30 AM1/17/06
to TurboGears
I'm personnaly using the procdedure from Bill Woodward (detailed on
http://groups.google.com/group/turbogears/msg/24bf35000bfe01f4 ). I've
made a shell script to automate all of this. I'm regularly updating the
script on my blog (http://crembo.blogspot.com/ ) when dependencies
changes in SVN (for example json_py -> simplejson). You can get it
directly from http://pastebin.ca/37053 .

Take care, this script will reinstall all your TurboGears dependencies.
You should really read the source to see what it does.

Reply all
Reply to author
Forward
0 new messages