Changes between Version 6 and Version 7 of TracPlugins


Ignore:
Timestamp:
Sep 8, 2024, 12:14:12 PM (12 days ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracPlugins

    v6 v7  
    77== Plugin discovery
    88
    9 A plugin is either a single .py file or a package (.egg or .whl). Trac looks for plugins in Python's `site-packages` directory, the [TracIni#GlobalConfiguration global shared] `plugins` directory and the [TracEnvironment project environment] `plugins` directory. Plugins installed to the project environment `plugins` directory are enabled, unless explicitly disabled in the `[components]` section of the `trac.ini` file.  Plugins installed elsewhere must be explicitly enabled in the [TracIni#components-section "[components]"] section of the `trac.ini` file.
     9From the user's point of view, a plugin is either a single .py file or a package (.egg or .whl). Trac looks for plugins in Python's `site-packages` directory, the [TracIni#GlobalConfiguration global shared] `plugins` directory and the [TracEnvironment project environment] `plugins` directory. Plugins installed to the project environment `plugins` directory are enabled, unless explicitly disabled in the `[components]` section of the `trac.ini` file.  Plugins installed elsewhere must be explicitly enabled in the [[TracIni#components-section| [components] ]] section of the `trac.ini` file.
    1010
    1111== Installing a Trac plugin
     
    1515=== For a single project
    1616
    17 Packages built for a single project must use the egg format, as the wheel format (described below) is not supported by the setuptools loading mechanism. Build the `egg` file from the plugin source:
     17Packages built for a single project must use the egg
     18format, as the wheel format (described below) is not
     19supported by the setuptools loading mechanism. Build the `egg` file from the plugin source:
    1820
    1921* Checkout or download and unpack the source.
    20 * Change to the directory containing `setup.py` and run:
     22* Change to the directory containing `setup.py`.
     23* Run:
    2124 {{{#!sh
    2225$ python setup.py bdist_egg
     
    4952==== From PyPI
    5053
    51 Some plugins, such as [https://trac-hacks.org/wiki/TagsPlugin TracTags], can be installed directly from [https://pypi.org PyPI] using `pip`:
     54Some plugins, such as [th:TagsPlugin TracTags], can be installed directly from [https://pypi.org PyPI] using `pip`:
    5255{{{#!sh
    5356$ pip install TracTags