Changes between Version 1 and Version 2 of TracPlugins


Ignore:
Timestamp:
2017-02-06T16:24:15-04:00 (8 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracPlugins

    v1 v2  
    2525== Installing a Trac plugin
    2626
     27The 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
    2729=== For a single project
    28 
    29 Plugins 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 [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
     53Some 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
    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 TracSpamFilter-0.4.1_r10106-py2.6.egg
     65$ easy_install --always-unzip TracTags
    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 http://svn.edgewall.com/repos/trac/plugins/0.12/spam-filter-captcha
     75$ easy_install https://trac-hacks.org/svn/tagsplugin/trunk
    7676}}}
    7777
     
    8383{{{#!ini
    8484[components]
    85 tracspamfilter.* = enabled
     85tractags.* = enabled
    8686}}}
    8787