Edgewall Software

Changes between Version 40 and Version 41 of TracPlugins


Ignore:
Timestamp:
Jul 16, 2007, 2:05:59 PM (17 years ago)
Author:
Noah Kantrowitz
Comment:

Clean up these docs a bit

Legend:

Unmodified
Added
Removed
Modified
  • TracPlugins

    v40 v41  
    2424
    2525If you have downloaded a source distribution of a plugin, and want to build the `.egg` file, follow this instruction:
    26  * unzip the file. It should provide a setup.py.
     26 * Unpack the source. It should provide a setup.py.
    2727 * Run:
    2828{{{
     
    5757You should end up with a directory having the same name as the zipped egg (complete with `.egg` extension) and containing its uncompressed contents.
    5858
    59 Trac also searches for globally installed plugins under `$prefix/share/trac/plugins` ''(since 0.10)''.
     59Trac also searches for globally installed plugins under `$PREFIX/share/trac/plugins` ''(since 0.10)''.
    6060
    6161==== From source ====
    6262
    63 Download directly into your trac environment's plugins directory, then run the `setup.py` to create the .egg, and finally easy_install the .egg, like so (example is from an ubuntu install; your plugins directory may be elsewhere:
    64 
     63`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:
    6564{{{
    66 cd /usr/share/trac/plugins
    67 svn co http://svn.edgewall.com/repos/trac/sandbox/webadmin/
    68 cd webadmin
    69 python setup.py bdist_egg
    70 cd dist
    71 easy_install-2.4 TracWebAdmin-0.1.2dev_r4429-py2.4.egg
     65easy_install http://svn.edgewall.com/repos/trac/sandbox/webadmin
    7266}}}
    73 
    7467
    7568==== Enabling the plugin ====
     
    8073}}}
    8174
    82 The name of the option is the Python package of the plugin. This should be specified in the documentation of the Plugin, but can also be easily find out by looking at the source (look for a top-level directory that contains a file named `__init__.py`.)
     75The name of the option is the Python package of the plugin. This should be specified in the documentation of the plugin, but can also be easily discovered by looking at the source (look for a top-level directory that contains a file named `__init__.py`.)
    8376
    84 Note: After installing the plugin, you may need to restart Apache.
     77Note: After installing the plugin, you need to restart your web server.
    8578
    8679== Setting up the Plugin Cache ==
     
    144137 * you actually added the necessary line(s) to the `[components]` section
    145138 * the package/module names are correct
    146  * if you're reference a module (as opposed to a class), you've appended the necessary “.*”
    147139 * the value is “enabled", not e.g. “enable”
    148140
    149141=== Check the permissions on the egg file ===
    150142
    151 Trac must of course be able to read the file. Yeah, you knew that ;-)
     143Trac must be able to read the file.
    152144
    153145=== Check the log files ===
    154146
    155 Enable [TracLogging logging] in Trac, set the log level to `DEBUG` and then watch the log file for messages about loading plugins.
     147Enable [wiki:TracLogging logging] and set the log level to `DEBUG`, then watch the log file for messages about loading plugins.
    156148
    157149=== Verify you have proper permissions ===
     
    161153=== If all of the above failed ===
    162154
    163 OK, so the logs don't mention plugins, the egg is readable, the python version is correct ''and'' the egg has been installed globally (and is enabled in the trac.ini) and it still doesn't work or give any error messages or any other indication as to why?
    164 
    165 ''If you have a umask like 027, then your setup tools is probably only readable as root.''
     155OK, so the logs don't mention plugins, the egg is readable, the python version is correct ''and'' the egg has been installed globally (and is enabled in the trac.ini) and it still doesn't work or give any error messages or any other indication as to why? Hop on the IrcChannel and ask away.
    166156
    167157----