Edgewall Software

Changes between Version 303 and Version 304 of TracInstall


Ignore:
Timestamp:
May 1, 2010, 9:30:41 AM (14 years ago)
Author:
anonymous
Comment:

added info about using pip to install trac

Legend:

Unmodified
Added
Removed
Modified
  • TracInstall

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