Edgewall Software

Changes between Initial Version and Version 1 of TracPlugins


Ignore:
Timestamp:
Aug 31, 2005, 4:22:41 PM (19 years ago)
Author:
dna
Comment:

how to install trac plugins as python eggs in Trac 0.9

Legend:

Unmodified
Added
Removed
Modified
  • TracPlugins

    v1 v1  
     1= Trac Plugin Installation Guide =
     2
     3Trac [milestone:0.9 0.9] and later supports plugins that extend the builtin functionality. The plugin functionality is based on the [wiki:TracDev/ComponentArchitecture component architecture].
     4
     5== Requirements ==
     6
     7To plugins in Trac, the following software packages must be installed:
     8
     9 * [http://peak.telecommunity.com/DevCenter/setuptools setuptools], version >= 0.5a13 for using plugins
     10
     11
     12== Installing a Trac Plugin ==
     13
     14As example we use the TracWebAdmin plugin.
     15
     16=== Step 1. downloading TracWebAdmin ===
     17
     18Checkout the lastes version:
     19{{{
     20$ svn co http://svn.edgewall.com/repos/trac/branches/jonas-dev/webadmin webadmin
     21}}}
     22
     23=== Step 2. build the plugin ===
     24
     25Build the Trac Plugin by running the following command at the top of the source directory
     26{{{
     27$ python ./setup.py bdist_egg clean
     28}}}
     29
     30=== Step 3. copy the Plugin into your Trac Environment Plugin Directory ===
     31
     32{{{
     33$ cp ./dist/TracWebAdmin-0.1.egg /path/to/projectenv/plugins/
     34}}}
     35
     36''Note: The user account under which the web server runs will require read permissions to the environment plugin directory and all the files inside.''
     37
     38=== Step 4. configure your Trac plugin ===
     39
     40Please consult the documentation of each plugin for further configuration.[[BR]]
     41For TracWebAdmin you need to login as an user with TRAC_ADMIN rights.
     42
     43''Enjoy!''
     44
     45== Troubleshooting ==
     46
     47'''Setting up plugin cache directory'''
     48
     49Plugins need a cache directory, the user account under which the web server runs will require write permissions to that directory.
     50
     51Put the following in your httpd.conf in the <Location> block
     52{{{
     53SetEnv PYTHON_EGG_CACHE /path/to/dir
     54}}}
     55
     56'''installing [http://peak.telecommunity.com/DevCenter/setuptools setuptools], version >= 0.5a13 '''
     57
     58Install Setup-Tools by running the following command at the top of the plugin source directory
     59{{{
     60python ez_setup/__init__.py
     61}}}
     62
     63----
     64See also TracGuide, [wiki:TracDev/ComponentArchitecture component architecture]