Warning: Can't synchronize with the repository (Unsupported version control system "svn": "No module named svn" ). Look in the Trac log for more information.

Developer Tips and Tricks

Isolated Buildout

Often times you need to run a buildout in an isolated Python environment. Since the system-provided site packages often either conflict or accidentally provide things. Virtualenv to the rescue!

  $ python2.4 /path/to/virtualenv/virtualenv.py --no-site-packages myproject
  $ cd myproject
  myproject$ svn co http://svn.someplace.com/repo/mybuildout/trunk mybuildout
  myproject$ cd mybuildout
  myproject/mybuildout$ ../bin/python bootstrap.py
  myproject/mybuildout$ ./bin/buildout
  myproject/mybuildout$ cd ..
  myproject$ 

Using this strategy it is also possible to temporarily add any egg (but often more useful, a development egg) to your buildout's site-packages.

Setting up a development egg

  myproject$ mkdir src
  myproject$ cd src
  myproject/src$ svn co http://svn.someplace.com/repo/foo.bar/trunk foo.bar
  myproject/src$ cd foo.bar
  myproject/src/foo.bar$ ../../bin/python setup.py develop
  myproject/src/foo.bar$ cd ../..
  myproject$ 

Installing a new egg using easy_install

  myproject$ ./bin/easy_install Pygments
  myproject$