On Friday, March 27, 2015 at 12:09:59 PM UTC-7, pineapplehandler wrote: > > I think I made some headway here. I removed ticketvalidator and deleted > the plugin folders: > easy_install -m ticketvalidator > rm -rf TicketValidator-0.2* > > Then I downloaded the source as a .zip file and unpacked it: > unzip ticketvalidatorplugin.zip > cp ticketvalidatorplugin/11/0.11/ticketvalidator/ /usr/local/lib/python2.7 > /dist-packages/ > > Then I installed it using the *develop* switch: > cd /usr/local/lib/python2.7/dist-packages/ticketvalidator/ > python setup.py develop > > Now I can make changes in core.py or admin.py and the changes take effect > almost (*) immediately, rather than having to recompile a new core.pyc. > > I'm still struggling to understand how the > > From the docs > <http://pythonhosted.org//setuptools/setuptools.html#development-mode>: > >> It works very similarly to setup.py install or the EasyInstall tool, >> except that it doesn’t actually install anything. Instead, it creates a >> special .egg-link file in the deployment directory, that links to your >> project’s source code. >> > > (*) Sometimes I am able to modify and save changes to admin.py and hit > refresh on my browser and see the changes. However when demonstrating this > to a colleague, of course it stopped behaving that way and I had to bounce > apache. >
Setting up the development environment is covered in TracDev/DevelopmentEnvironmentSetup. The easiest method for development is to run tracd with the "-r" flag. http://trac.edgewall.org/wiki/TracDev/DevelopmentEnvironmentSetup -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.
