Changes between Version 1 and Version 2 of TracPlugins
- Timestamp:
- 02/23/2019 03:58:32 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracPlugins
v1 v2 25 25 == Installing a Trac plugin 26 26 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 27 29 === 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`.30 30 31 31 If you have downloaded a source distribution of a plugin, and want to build the `.egg` file: … … 51 51 ==== With an .egg file 52 52 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 Trac SpamFilter56 $ pip install Trac SpamFilter53 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 57 57 }}} 58 58 … … 63 63 If 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`: 64 64 {{{#!sh 65 $ easy_install --always-unzip Trac SpamFilter-0.4.1_r10106-py2.6.egg65 $ easy_install --always-unzip TracTags 66 66 }}} 67 67 You should end up with a directory having the same name as the zipped egg, complete with `.egg` extension, and containing its uncompressed contents. … … 73 73 `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: 74 74 {{{#!sh 75 $ easy_install http ://svn.edgewall.com/repos/trac/plugins/0.12/spam-filter-captcha75 $ easy_install https://trac-hacks.org/svn/tagsplugin/trunk 76 76 }}} 77 77 … … 83 83 {{{#!ini 84 84 [components] 85 trac spamfilter.* = enabled85 tractags.* = enabled 86 86 }}} 87 87