Changes between Version 2 and Version 3 of TracPlugins


Ignore:
Timestamp:
May 2, 2019, 9:45:05 AM (14 months ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracPlugins

    v2 v3  
    2525== Installing a Trac plugin
    2626
    27 The instructions below are applicable to a plugin packaged as an egg. Plugins implemented as a single `py` file should be downloaded and copied to the [TracEnvironment project environment] `plugins` directory or the [TracIni#GlobalConfiguration global shared] plugins directory.
    28 
    2927=== For a single project
     28
     29Plugins are typically packaged as [http://peak.telecommunity.com/DevCenter/PythonEggs Python eggs]. That means they are .zip archives with the file extension `.egg`.
    3030
    3131If you have downloaded a source distribution of a plugin, and want to build the `.egg` file:
     
    5151==== With an .egg file
    5252
    53 Some plugins, such as [https://trac-hacks.org/wiki/TagsPlugin TracTags], are downloadable as an `.egg` file that can be installed with `easy_install` or `pip`:
    54 {{{#!sh
    55 $ easy_install TracTags
    56 $ pip install TracTags
     53Some plugins, such as [trac:SpamFilter SpamFilter], are downloadable as an `.egg` file that can be installed with `easy_install` or `pip`:
     54{{{#!sh
     55$ easy_install TracSpamFilter
     56$ pip install TracSpamFilter
    5757}}}
    5858
     
    6363If Trac reports permission errors after installing a zipped egg, and you would rather not bother providing an egg cache directory writable by the web server, you can get around it by simply unzipping the egg. Just pass `--always-unzip` to `easy_install`:
    6464{{{#!sh
    65 $ easy_install --always-unzip TracTags
     65$ easy_install --always-unzip TracSpamFilter-0.4.1_r10106-py2.6.egg
    6666}}}
    6767You should end up with a directory having the same name as the zipped egg, complete with `.egg` extension, and containing its uncompressed contents.
     
    7373`easy_install` makes installing from source a snap. Just give it the URL to either a Subversion repository or a tarball/zip of the source:
    7474{{{#!sh
    75 $ easy_install https://trac-hacks.org/svn/tagsplugin/trunk
     75$ easy_install http://svn.edgewall.com/repos/trac/plugins/0.12/spam-filter-captcha
    7676}}}
    7777
     
    8383{{{#!ini
    8484[components]
    85 tractags.* = enabled
     85tracspamfilter.* = enabled
    8686}}}
    8787