whatspop - Kunal Anand

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.

About I am currently a Senior Engineer at MySpace. Feel free to check out my personal collective.

Archives
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
January 2007
February 2007
April 2007
November 2007
December 2007
January 2008
March 2008
April 2008
May 2008
June 2008

Subscribe to my feed