Changes between Version 40 and Version 41 of TracPlugins
- Timestamp:
- Jul 16, 2007, 2:05:59 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracPlugins
v40 v41 24 24 25 25 If 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. 27 27 * Run: 28 28 {{{ … … 57 57 You should end up with a directory having the same name as the zipped egg (complete with `.egg` extension) and containing its uncompressed contents. 58 58 59 Trac also searches for globally installed plugins under `$ prefix/share/trac/plugins` ''(since 0.10)''.59 Trac also searches for globally installed plugins under `$PREFIX/share/trac/plugins` ''(since 0.10)''. 60 60 61 61 ==== From source ==== 62 62 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: 65 64 {{{ 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 65 easy_install http://svn.edgewall.com/repos/trac/sandbox/webadmin 72 66 }}} 73 74 67 75 68 ==== Enabling the plugin ==== … … 80 73 }}} 81 74 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 outby looking at the source (look for a top-level directory that contains a file named `__init__.py`.)75 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 discovered by looking at the source (look for a top-level directory that contains a file named `__init__.py`.) 83 76 84 Note: After installing the plugin, you may need to restart Apache.77 Note: After installing the plugin, you need to restart your web server. 85 78 86 79 == Setting up the Plugin Cache == … … 144 137 * you actually added the necessary line(s) to the `[components]` section 145 138 * the package/module names are correct 146 * if you're reference a module (as opposed to a class), you've appended the necessary “.*”147 139 * the value is “enabled", not e.g. “enable” 148 140 149 141 === Check the permissions on the egg file === 150 142 151 Trac must of course be able to read the file. Yeah, you knew that ;-)143 Trac must be able to read the file. 152 144 153 145 === Check the log files === 154 146 155 Enable [ TracLogging logging] in Trac, set the log level to `DEBUG` andthen watch the log file for messages about loading plugins.147 Enable [wiki:TracLogging logging] and set the log level to `DEBUG`, then watch the log file for messages about loading plugins. 156 148 157 149 === Verify you have proper permissions === … … 161 153 === If all of the above failed === 162 154 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.'' 155 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? Hop on the IrcChannel and ask away. 166 156 167 157 ----