Changes between Version 2 and Version 3 of TracInstall
- Timestamp:
- Aug 2, 2022, 2:09:59 PM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracInstall
v2 v3 1 = Trac Installation Guide for 1. 41 = Trac Installation Guide for 1.5 2 2 [[TracGuideToc]] 3 3 … … 16 16 To install Trac, the following software packages must be installed: 17 17 18 * [https://www.python.org/ Python], version >= 2.7 and < 3.0 19 (note that we dropped the support for Python 2.6 in this release) 20 * [https://pypi.org/project/setuptools setuptools], version >= 0.6 18 * [https://www.python.org/ Python], version >= 3.5 19 * [https://pypi.org/project/setuptools setuptools], version > 5.6 21 20 * [https://pypi.org/project/Jinja2 Jinja2], version >= 2.9.3 22 23 {{{#!div style="border: 1pt dotted; margin: 1em"24 **Setuptools Warning:** If the version of your setuptools is in the range 5.4 through 5.6, the environment variable `PKG_RESOURCES_CACHE_ZIP_MANIFESTS` must be set in order to avoid significant performance degradation. More information may be found in [#DeployingTrac Deploying Trac].25 }}}26 21 27 22 You also need a database system and the corresponding python bindings. The database can be either SQLite, PostgreSQL or MySQL. … … 37 32 You need to install the database and its Python bindings: 38 33 * [https://www.postgresql.org/ PostgreSQL], version 9.1 or later 39 * [https://pypi.org/project/psycopg2 psycopg2], version 2. 0or later34 * [https://pypi.org/project/psycopg2 psycopg2], version 2.5 or later 40 35 41 36 See [trac:DatabaseBackend#Postgresql DatabaseBackend] for details. … … 54 49 ==== Subversion 55 50 56 [https://subversion.apache.org/ Subversion], 1. 6.x or later and the '''''corresponding''''' Python bindings.51 [https://subversion.apache.org/ Subversion], 1.14.x or later and the '''''corresponding''''' Python bindings. 57 52 58 53 There are [https://subversion.apache.org/packages.html pre-compiled SWIG bindings] available for various platforms. See [trac:TracSubversion#GettingSubversion getting Subversion] for more information. … … 92 87 ==== Other Python Packages 93 88 94 * [http://babel.pocoo.org Babel], version 0.9.6 or >= 1.3,89 * [http://babel.pocoo.org Babel], version >= 2.2, 95 90 needed for localization support 96 91 * [http://pytz.sourceforge.net pytz] to get a complete list of time zones, … … 98 93 an internal time zone implementation. Installing Babel 99 94 will install pytz. 100 * [http://docutils.sourceforge.net docutils], version >= 0.3.9 101 for WikiRestructuredText. 102 * [http://pygments.org Pygments] for 103 [TracSyntaxColoring syntax highlighting]. 104 * [https://pypi.org/project/textile Textile] for rendering the [https://github.com/textile/python-textile Textile markup language]. 95 * [http://docutils.sourceforge.net docutils], 96 version >= 0.14, for WikiRestructuredText. 97 * [http://pygments.org Pygments], version >= 1.0, 98 for [TracSyntaxColoring syntax highlighting]. 99 * [https://pypi.org/project/textile Textile], 100 version >= 2.3, 101 for rendering the [https://github.com/textile/python-textile Textile markup language]. 105 102 * [https://pypi.org/project/passlib passlib] on Windows to decode [TracStandalone#BasicAuthorization:Usingahtpasswdpasswordfile htpasswd formats] other than `SHA-1`. 106 103 * [https://pypi.org/project/pyreadline pyreadline] on Windows for trac-admin [TracAdmin#InteractiveMode command completion]. … … 119 116 120 117 === Using `pip` 121 `pip` is the modern Python package manager and is included in Python 2.7.9 and later. Use [https://bootstrap.pypa.io/get-pip.py get-pip.py] to install `pip` for an earlier version of Python. 122 123 {{{#!sh 124 $ pip install Trac 125 }}} 126 127 `pip` will automatically resolve the //required// dependencies (Jinja2 and setuptools) and download the latest packages from pypi.org. 118 `pip` is the modern Python package manager and is included in Python distributions. `pip` will automatically 119 resolve the //required// dependencies (Jinja2 and 120 setuptools) and download the latest packages from pypi.org. 128 121 129 122 You can also install directly from a source package. You can obtain the source in a tar or zip from the [trac:TracDownload] page. After extracting the archive, change to the directory containing `setup.py` and run: … … 143 136 $ pip install https://download.edgewall.org/trac/Trac-latest-dev.tar.gz 144 137 }}} 145 * Install the unreleased 1. 2-stable from subversion:138 * Install the unreleased 1.4-stable from subversion: 146 139 {{{#!sh 147 140 $ pip install svn+https://svn.edgewall.org/repos/trac/branches/1.2-stable … … 206 199 207 200 == Deploying Trac 208 209 {{{#!div style="border: 1pt dotted; margin: 1em"210 **Setuptools Warning:** If the version of your setuptools is in the range 5.4 through 5.6, the environment variable `PKG_RESOURCES_CACHE_ZIP_MANIFESTS` must be set in order to avoid significant performance degradation.211 212 If running `tracd`, the environment variable can be set system-wide or for just the user that runs the `tracd` process. There are several ways to accomplish this in addition to what is discussed here, and depending on the distribution of your OS.213 214 To be effective system-wide a shell script with the `export` statement may be added to `/etc/profile.d`. To be effective for a user session the `export` statement may be added to `~/.profile`.215 {{{#!sh216 export PKG_RESOURCES_CACHE_ZIP_MANIFESTS=1217 }}}218 219 Alternatively, the variable can be set in the shell before executing `tracd`:220 {{{#!sh221 $ PKG_RESOURCES_CACHE_ZIP_MANIFESTS=1 tracd --port 8000 /path/to/myproject222 }}}223 224 If running the Apache web server, !Ubuntu/Debian users should add the `export` statement to `/etc/apache2/envvars`. !RedHat/CentOS/Fedora should can add the `export` statement to `/etc/sysconfig/httpd`.225 }}}226 201 227 202 === Running the Standalone Server