| 140 | === Using `pip` |
| 141 | 'pip' is an easy_install replacement that is very useful to quickly install python packages. |
| 142 | To get a trac installation up and running in less than 5 minutes: |
| 143 | |
| 144 | Assuming you want to have your entire pip installation in /opt/user/trac |
| 145 | |
| 146 | - |
| 147 | {{{ |
| 148 | pip -E /opt/user/trac install trac psycopg2 |
| 149 | }}} |
| 150 | or |
| 151 | - |
| 152 | {{{ |
| 153 | pip -E /opt/user/trac install trac mysql-python |
| 154 | }}} |
| 155 | |
| 156 | Make sure your OS specific headers are available for pip to automatically build PostgreSQL (libpq-dev) or MySQL (libmysqlclient-dev) bindings. |
| 157 | |
| 158 | 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 |
| 159 | |
| 160 | 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) |
| 161 | |
| 162 | Additionally, you can install several trac plugins (listed [http://pypi.python.org/pypi?:action=search&term=trac&submit=search here]) through pip. |
| 163 | |
| 164 | |
| 165 | |