Help with Trac Plugins

17 views
Skip to first unread message

Patty Cottrill

unread,
Jun 12, 2026, 11:23:19 PMJun 12
to trac-...@googlegroups.com
I need help with Trac plugins.
 
I have a shared plugins directory that I point to in each Trac project’s trac.ini:
[inherit]
htdocs_dir = /home/trac/tracshare/htdocs/shared
plugins_dir = /home/trac/plugins
templates_dir =
 
Some projects also have plugins installed in their individual plugins directory.
The plugins in the individual projects are NOT included in the shared directory.
One of the plugins is the Trac Account Manager plugin; same version on all individual projects.
 
I would like to install the Trac Account Manager plugin in the shared directory, since I’m now using the plugin on all projects.
 
  1. What is the best procedure for doing this?
  2. Can I just copy the Account Manager plugin to the shared folder?
  3. If so, will I need to delete it from each project’s plugin folder?
 
I am running Trac 1.2.3
 
Thank you in advance for your help.
 
Best,
Patty Cottrill
 
 
*** CONFIDENTIALITY NOTICE: This email and any attachments from IMCI Technologies are for the sole use of the intended recipient and may contain material that is proprietary, confidential, privileged or otherwise legally protected or restricted under applicable government laws. Any review, disclosure, distributing or other use without expressed permission of the sender is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies without reading, printing, or saving. ***

Jun Omae

unread,
Jun 17, 2026, 11:21:40 PM (9 days ago) Jun 17
to trac-...@googlegroups.com
Hi,

On Sat, Jun 13, 2026 at 12:23 PM 'Patty Cottrill' via Trac Users
<trac-...@googlegroups.com> wrote:
>
> I need help with Trac plugins.
>
> I have a shared plugins directory that I point to in each Trac project’s trac.ini:
> [inherit]
> htdocs_dir = /home/trac/tracshare/htdocs/shared
> plugins_dir = /home/trac/plugins
> templates_dir =
>
> Some projects also have plugins installed in their individual plugins directory.
> The plugins in the individual projects are NOT included in the shared directory.
> One of the plugins is the Trac Account Manager plugin; same version on all individual projects.
>
> I would like to install the Trac Account Manager plugin in the shared directory, since I’m now using the plugin on all projects.

I guess that you're using TRAC_ENV_PARENT_DIR. All plugins in the
individual projects are loaded for all projects. You can confirm that
all plugins are loaded in admin/general/plugin page of each project.


> What is the best procedure for doing this?

I recommend that installing such plugins to site-packages in the virtualenv.

$ virtualenv /path/to/venv
$ . /path/to/venv/bin/activate
$ pip install svn+https://trac-hacks.org/svn/accountmanagerplugin/trunk

See also https://trac-hacks.org/wiki/TracPlugins#Forallprojects

> Can I just copy the Account Manager plugin to the shared folder?

If you want to install plugins to the directory which configured in
"[inherit] plugins_dir" option, you can copy the egg file that built
from the source to the directory.

$ python setup.py bdist_egg
$ cp dist/*.egg /home/trac/plugins/

> If so, will I need to delete it from each project’s plugin folder?

Yes. The "plugins" directory of each project must be empty if you're
using TRAC_ENV_PARENT_DIR.

--
Jun Omae <jun...@gmail.com> (大前 潤)
Reply all
Reply to author
Forward
0 new messages