| 1 | = Trac Plugin Installation Guide = |
| 2 | |
| 3 | Trac [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 | |
| 7 | To 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 | |
| 14 | As example we use the TracWebAdmin plugin. |
| 15 | |
| 16 | === Step 1. downloading TracWebAdmin === |
| 17 | |
| 18 | Checkout 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 | |
| 25 | Build 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 | |
| 40 | Please consult the documentation of each plugin for further configuration.[[BR]] |
| 41 | For 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 | |
| 49 | Plugins need a cache directory, the user account under which the web server runs will require write permissions to that directory. |
| 50 | |
| 51 | Put the following in your httpd.conf in the <Location> block |
| 52 | {{{ |
| 53 | SetEnv PYTHON_EGG_CACHE /path/to/dir |
| 54 | }}} |
| 55 | |
| 56 | '''installing [http://peak.telecommunity.com/DevCenter/setuptools setuptools], version >= 0.5a13 ''' |
| 57 | |
| 58 | Install Setup-Tools by running the following command at the top of the plugin source directory |
| 59 | {{{ |
| 60 | python ez_setup/__init__.py |
| 61 | }}} |
| 62 | |
| 63 | ---- |
| 64 | See also TracGuide, [wiki:TracDev/ComponentArchitecture component architecture] |