Edgewall Software

Changes between Version 326 and Version 327 of TracInstall


Ignore:
Timestamp:
Jan 5, 2011, 11:27:54 AM (13 years ago)
Author:
Christian Boos
Comment:

note about first time installation issue with easy_install and moved #Usingpip section down

Legend:

Unmodified
Added
Removed
Modified
  • TracInstall

    v326 v327  
    138138A few examples:
    139139
    140  - install Trac 0.12:
     140 - install Trac 0.12.1 with i18n support:
    141141   {{{
     142   easy_install Babel==0.9.5
    142143   easy_install Trac==0.12
     144   easy_install -U Trac
    143145   }}}
    144 
    145  - install latest development version 0.12dev:
     146   ''The upgrade step is a quirk currently necessary to trigger the compilation of the catalog files used for the translations'' (needs to be fixed)
     147
     148 - install latest stable version of Trac:
    146149   {{{
    147    easy_install Trac==dev
     150   easy_install -U Trac
    148151   }}}
    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
     159Of course, using the python-typical setup at the top of the source directory also works.
     160
     161You 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
     169This will byte-compile the python source code and install it as an .egg file or folder in the `site-packages` directory
     170of your Python installation. The .egg will also contain all other resources needed by standard Trac, such as htdocs and templates.
     171
     172The 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
     174If 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}}}
     178Alternatively, 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
     182To install Trac to a custom location, or find out about other advanced installation options, run:
     183{{{
     184easy_install --help
     185}}}
     186
     187Also see [http://docs.python.org/inst/inst.html Installing Python Modules] for detailed information.
     188
     189Specifically, you might be interested in:
     190{{{
     191easy_install --prefix=/path/to/installdir
     192}}}
     193or, if installing Trac to a Mac OS X system:
     194{{{
     195easy_install --prefix=/usr/local --install-dir=/Library/Python/2.5/site-packages
     196}}}
     197Note: 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
     199The 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.
    151200
    152201=== Using `pip`
     
    154203To get a trac installation up and running in less than 5 minutes:
    155204
    156 Assuming you want to have your entire pip installation in /opt/user/trac
     205Assuming you want to have your entire pip installation in /opt/user/trac:
    157206
    158207 -
     
    168217Make sure your OS specific headers are available for pip to automatically build PostgreSQL (libpq-dev) or MySQL (libmysqlclient-dev) bindings.
    169218
    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)
     219pip 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
     221All 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)
    173222
    174223Additionally, you can install several trac plugins (listed [http://pypi.python.org/pypi?:action=search&term=trac&submit=search here]) through pip.
    175224
    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.
    220225
    221226