Building Trac eggs on Windows
8/08/2006
I have been playing with Trac for an upcoming fun project and trying to extend it by building plugins (using Python eggs). Unfortunately, the process is tedious: compile an egg, copy the egg to the project plugins folder, and kick start the dynamic server. Note, I found that I could not compile an egg (Python 2.3) from a different directory (this obviously causes pain when you are working in a different directory). I wrote a small Windows .bat file which you could simply copy/paste/hack into a .sh file.
cd c:\YOUR_PLUGIN_DIR
python setup.py bdist_egg
cd dist
copy YOUR_EGG_FILE.egg c:\YOUR_TRAC_DIR\plugins\YOUR_EGG_FILE.egg
cd c:\Python23\Scripts
python tracd c:\YOUR_TRAC_DIR
I really need to read more about eggs one day.