ServerZen.Net

Technology news centering around Python

Setting Up Bazaar

written by rocky, on 3/11/09 12:47 PM.

The following instructions are for setting up Bzr in an isolated environment. This should work on Linux/MacOSX/Windows.

Installing Virtualenv

  1. Download virtualenv from PyPi (http://pypi.python.org/pypi/virtualenv)
  2. Extract virtualenv tarball into some directory (for example, $HOME/virtualenv-1.3.2)

At this point isolated Python environments can be setup as needed.

Installing Latest Bzr

  1. Create a new virtualenv: $ python $HOME/virtualenv-1.3.2/virtualenv.py bzr
  2. Go into the bzr virtualenv dir and install bzr into the new virtualenv: bin/easy_install bzr

The latest bzr (as of this writing it would be 1.13rc1) can now be run by executing the bzr executable from from $HOME/bzr/bin

Installing Bzr-SVN

  1. Go into the bzr dir and install subvertpy through PyPi: bin/easy_install subvertpy
  2. Download latest bzr-svn from http://bazaar-vcs.org/BzrForeignBranches/Subversion (make sure the version of bzr-svn supports the version of bzr that was installed)
  3. Extract the bzr-svn tarball some place (ie $HOME/bzr-svn-0.5.3)
  4. Go into the bzr-svn dir and run: $HOME/bzr/bin/python setup.py install

Now Bzr with the svn plugin are installed inside of $HOME/bzr. You can test out your svn checkout by doing:

$ $HOME/bzr/bin/bzr branch http://modwsgi.googlecode.com/svn/trunk/ modwsgi-trunk

Comments

Leave a Reply