Erik Bray wrote:
> On Jan 27, 2008 10:55 AM, Scott Sharkey <[EMAIL PROTECTED]> wrote:
>> There are no messages indicating an attempt to load the plugin.  I even
>> put some log messages of my own in the __init__ functions, which are
>> not being logged.
>>
>> -Scott
>>
>>
>> Matt Good wrote:
>>> Trac logs a fair bit of information during the plugin loading phase,
>>> so take a look and see if there's anything there that may help.
>>>
>>> -- Matt
>>>
>>> On Jan 25, 7:48 am, Scott Sharkey <[EMAIL PROTECTED]> wrote:
>>>> Scott Sharkey wrote:
>>>>> Hi guys,
>>>>> I'm trying to develop a trac plugin.  I have installed it into the trac
>>>>> environment under the plugins directory, using the following command...
>>>>> python setup.py develop --install-dir=/var/trac/plugins
>>>>> (/var/trac is the environment directory)
>>>>> With eggs, trac auto-loads them.  It does not appear to do so with
>>>>> egg-links - do I need to enable the plugin (not necessary if it's an
>>>>> egg) or is there some other magic?
>>>> Forgot to mention - it does not seem to be loading even if I enable it
>>>> in the [components] section of the ini file either.
>>>>
>>>> -Scott
>>>>
> 
> Maybe you could post your setup.py script?  Are you making sure to add
> your plugin to trac.plugins entry point?

Well, it loads if I make an egg, so I'm assuming I got the entry points 
right.  It only fails in develop mode.  Here's setup.py:

#!/usr/bin/python

from setuptools import find_packages, setup

setup(
   name='newUI',
   version='0.2',
   packages=find_packages(exclude=['*.tests*']),
   author='Scott Sharkey',
   author_email='[EMAIL PROTECTED]',
   description='Insider UI Modifications Plugin for Trac',
   entry_points = """
     [trac.plugins]
     inventivUI = inventivUI
   """,
)


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to