> Also, I have Trac-jsGantt 0.10 installed but even if I make 'rescal'
> require 0.12, the resource calendar shows up in webadmin.  How do I use
> extras_require to only show the extra when the requirement is met?

Now, the extras requirement is resolved during installation of your
package, for example when using pip or setup.py.

AFAIK the extras requirement is not being further examined by the
component loader responsible for automatic load of the plugins provided by
your package. Unless your component fails to instantiate during component
load due to the missing dependency which might be caused for example an
import going wrong, in that case the issue will be reported in trac.log
and the component will not be made available. Other than that, your
missing dependency might cause a runtime failure during for example
rendering of the gantt chart.... This, however will not be detected during
component load, unless you prepare the import statements so that they will
test for the available version of the required package and raise if the
requirement is not being met.

You mention that your resource calendar does show up in webadmin. After
the explicit import or without it? If so, then the component loader
already recognized your package and loaded the components it provided.

> If there's a Python setup tutorial that covers this, I haven't found it
> but would welcome a pointer.  Thanks.

Just look for python distutils or use the below link :D

http://docs.python.org/distutils/index.html

Regards

Carsten

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to trac-dev@googlegroups.com.
To unsubscribe from this group, send email to 
trac-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en.

Reply via email to