Joachim: Thanks! This is a great ice breaker for me. Once I get a few of the basics under my belt developing plugins I will be able to research options better and work on my own.
Have a nice day Stan -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2008 2:28 PM To: Trac Development Subject: [Trac-dev] Re: Trac Plugin development using the Eclipse IDE andPyDev On Jun 26, 8:09 pm, "Williams, Stanley E" <[EMAIL PROTECTED]> wrote: > Can anyone point me to any tutorials or documents to jump start this > learning process? I'm working with Eclipse Europe (3.3) and pydev, and I'm quite happy with it. These were my steps as far as I remember: 1. You can check out the trac sources inside eclipse using either the subclipse or the subversive plugin. I prefer the latter one. 2. Then build the setuptools info file from the command line $ set PYTHONPATH=c:\path\to\your\trac\sources $ python setup.py egg_info 3. Create a trac environment, e.g. $ trac-admin /path/to/myproject initenv 4. In Eclipse, make sure that the PYTHONPATH in the project properties dialog includes the sources for trac. 5. Create an initial run configuration by clicking right on trac/web/standalone.py file, and choosing "Run As->Python Run". trac will complain that no environment has been set. 6. Select "Run->Open Run Dialog..." and set the correct command line arguments in the "arguments" tab, eg. "--port 8000 /path/to/myproject" (Note that the option --auto-reload will cause tracd to restart every time source code has been changed, but it seems to prevent debugging with pydev. Does someone has a clue?) 7. You should now be able to run tracd, as well as to debug it using the same run configuration. To run the test cases, just click on a test folder and select "Run->Python unit tests" 8. To debug a plugin, deploy it into your test environment via $ python setup.py develop -md /path/to/projenv/plugins and then start the run configuration from above. Hope this helps Joachim --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-dev?hl=en -~----------~----~----~----~------~----~------~--~---
