Re: [Trac] Help with Trac Plugins

Jun Omae <[email protected]> Thu, 18 Jun 2026 12:21:12 +0900
Newsgroups gmane.comp.version-control.subversion.trac.general
Message-ID <CAEVLMagiydAxaMF5rGpY2kf1+tZ87wsUGU0Arn5GXBeNWK69bg@mail.gmail.com>
Hi,

On Sat, Jun 13, 2026 at 12:23=E2=80=AFPM 'Patty Cottrill' via Trac Users
<trac-users-/[email protected]> wrote:
>
> I need help with Trac plugins.
>
> I have a shared plugins directory that I point to in each Trac project=E2=
=80=99s trac.ini:
> [inherit]
> htdocs_dir =3D /home/trac/tracshare/htdocs/shared
> plugins_dir =3D /home/trac/plugins
> templates_dir =3D
>
> Some projects also have plugins installed in their individual plugins dir=
ectory.
> The plugins in the individual projects are NOT included in the shared dir=
ectory.
> One of the plugins is the Trac Account Manager plugin; same version on al=
l individual projects.
>
> I would like to install the Trac Account Manager plugin in the shared dir=
ectory, since I=E2=80=99m 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=E2=80=99s plugin folder=
?

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

--=20
Jun Omae <[email protected]> (=E5=A4=A7=E5=89=8D =E6=BD=A4)

--=20
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 e=
mail to trac-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To view this discussion visit https://groups.google.com/d/msgid/trac-users/=
CAEVLMagiydAxaMF5rGpY2kf1%2BtZ87wsUGU0Arn5GXBeNWK69bg%40mail.gmail.com.