149 | | Note that in this case you won't have the possibility to run a localized version of Trac; |
150 | | either use a released version or install from source |
| 152 | |
| 153 | - install latest trunk development version (0.13dev): |
| 154 | {{{ |
| 155 | easy_install -U Trac==dev |
| 156 | }}} |
| 157 | |
| 158 | === From source |
| 159 | Of course, using the python-typical setup at the top of the source directory also works. |
| 160 | |
| 161 | You can obtain the source for a .tar.gz or .zip file corresponding to a release (e.g. Trac-0.12.tar.gz), or you can get the source directly from the repository (see [trac:SubversionRepository] for details). |
| 162 | |
| 163 | {{{ |
| 164 | $ python ./setup.py install |
| 165 | }}} |
| 166 | |
| 167 | ''You'll need root permissions or equivalent for this step.'' |
| 168 | |
| 169 | This will byte-compile the python source code and install it as an .egg file or folder in the `site-packages` directory |
| 170 | of your Python installation. The .egg will also contain all other resources needed by standard Trac, such as htdocs and templates. |
| 171 | |
| 172 | The script will also install the [wiki:TracAdmin trac-admin] command-line tool, used to create and maintain [wiki:TracEnvironment project environments], as well as the [wiki:TracStandalone tracd] standalone server. |
| 173 | |
| 174 | If you install from source and want to make Trac available in other languages, make sure Babel is installed. Only then, perform the `install` (or simply redo the `install` once again afterwards if you realize Babel was not yet installed): |
| 175 | {{{ |
| 176 | $ python ./setup.py install |
| 177 | }}} |
| 178 | Alternatively, you can do a `bdist_egg` and copy the .egg from dist/ to the place of your choice, or you can create a Windows installer (`bdist_wininst`). |
| 179 | |
| 180 | === Advanced Options === |
| 181 | |
| 182 | To install Trac to a custom location, or find out about other advanced installation options, run: |
| 183 | {{{ |
| 184 | easy_install --help |
| 185 | }}} |
| 186 | |
| 187 | Also see [http://docs.python.org/inst/inst.html Installing Python Modules] for detailed information. |
| 188 | |
| 189 | Specifically, you might be interested in: |
| 190 | {{{ |
| 191 | easy_install --prefix=/path/to/installdir |
| 192 | }}} |
| 193 | or, if installing Trac to a Mac OS X system: |
| 194 | {{{ |
| 195 | easy_install --prefix=/usr/local --install-dir=/Library/Python/2.5/site-packages |
| 196 | }}} |
| 197 | Note: If installing on Mac OS X 10.6 running {{{ easy_install http://svn.edgewall.org/repos/trac/trunk }}} will install into {{{ /usr/local }}} and {{{ /Library/Python/2.6/site-packages }}} by default |
| 198 | |
| 199 | The above will place your `tracd` and `trac-admin` commands into `/usr/local/bin` and will install the Trac libraries and dependencies into `/Library/Python/2.5/site-packages`, which is Apple's preferred location for third-party Python application installations. |
170 | | pip will automatically resolve all dependencies (like Genshi, pygments, etc.) and download the latest packages on pypi.python.org and create a self contained installation in /opt/user/trac |
171 | | |
172 | | All commands (tracd, trac-admin) are available in /opt/user/trac/bin . This can also be leveraged for mod_python (using !PythonHandler directive) and mod_wsgi (using WSGIDaemonProcess directive) |
| 219 | pip will automatically resolve all dependencies (like Genshi, pygments, etc.) and download the latest packages on pypi.python.org and create a self contained installation in /opt/user/trac . |
| 220 | |
| 221 | All commands (tracd, trac-admin) are available in /opt/user/trac/bin. This can also be leveraged for mod_python (using !PythonHandler directive) and mod_wsgi (using WSGIDaemonProcess directive) |
176 | | |
177 | | |
178 | | === From source |
179 | | Of course, using the python-typical setup at the top of the source directory also works. |
180 | | |
181 | | You can obtain the source for a .tar.gz or .zip file corresponding to a release (e.g. Trac-0.12.tar.gz), or you can get the source directly from the repository (see [trac:SubversionRepository] for details). |
182 | | |
183 | | {{{ |
184 | | $ python ./setup.py install |
185 | | }}} |
186 | | |
187 | | ''You'll need root permissions or equivalent for this step.'' |
188 | | |
189 | | This will byte-compile the python source code and install it as an .egg file or folder in the `site-packages` directory |
190 | | of your Python installation. The .egg will also contain all other resources needed by standard Trac, such as htdocs and templates. |
191 | | |
192 | | The script will also install the [wiki:TracAdmin trac-admin] command-line tool, used to create and maintain [wiki:TracEnvironment project environments], as well as the [wiki:TracStandalone tracd] standalone server. |
193 | | |
194 | | If you install from source and want to make Trac available in other languages, make sure Babel is installed. Only then, perform the `install` (or simply redo the `install` once again afterwards if you realize Babel was not yet installed): |
195 | | {{{ |
196 | | $ python ./setup.py install |
197 | | }}} |
198 | | Alternatively, you can do a `bdist_egg` and copy the .egg from dist/ to the place of your choice, or you can create a Windows installer (`bdist_wininst`). |
199 | | |
200 | | === Advanced Options === |
201 | | |
202 | | To install Trac to a custom location, or find out about other advanced installation options, run: |
203 | | {{{ |
204 | | easy_install --help |
205 | | }}} |
206 | | |
207 | | Also see [http://docs.python.org/inst/inst.html Installing Python Modules] for detailed information. |
208 | | |
209 | | Specifically, you might be interested in: |
210 | | {{{ |
211 | | easy_install --prefix=/path/to/installdir |
212 | | }}} |
213 | | or, if installing Trac to a Mac OS X system: |
214 | | {{{ |
215 | | easy_install --prefix=/usr/local --install-dir=/Library/Python/2.5/site-packages |
216 | | }}} |
217 | | Note: If installing on Mac OS X 10.6 running {{{ easy_install http://svn.edgewall.org/repos/trac/trunk }}} will install into {{{ /usr/local }}} and {{{ /Library/Python/2.6/site-packages }}} by default |
218 | | |
219 | | The above will place your `tracd` and `trac-admin` commands into `/usr/local/bin` and will install the Trac libraries and dependencies into `/Library/Python/2.5/site-packages`, which is Apple's preferred location for third-party Python application installations. |