Edgewall Software

Changes between Version 216 and Version 217 of TracDownload


Ignore:
Timestamp:
May 10, 2021, 2:16:14 AM (6 weeks ago)
Author:
Ryan J Ollos
Comment:

Replace 1.2 with 1.4

Legend:

Unmodified
Added
Removed
Modified
  • TracDownload

    v216 v217  
    165165
    166166You can also install a development version, either using the normal installation procedure, or by installing it at a specific location.
    167 We recommend that you choose some well visible place (e.g. `/opt/trac-1.2dev`), and override the PYTHONPATH environment variable (or !PythonPath path directive for `mod_python`) by ''prepending'' the `/opt/trac-1.2dev/lib/python2.7/site-packages` path (replace 2.7 by the Python version that you actually use). That way, you minimize the risk of interferences with the packaged Trac version you probably already have.
     167We recommend that you choose some well visible place (e.g. `/opt/trac-1.4dev`), and override the PYTHONPATH environment variable (or !PythonPath path directive for `mod_python`) by ''prepending'' the `/opt/trac-1.4dev/lib/python2.7/site-packages` path (replace 2.7 by the Python version that you actually use). That way, you minimize the risk of interfering with the packaged Trac version you probably already have.
    168168{{{#!sh
    169 $ cd 1.2-stable
    170 $ python setup.py install --prefix=/opt/trac-1.2dev
     169$ cd 1.4-stable
     170$ python setup.py install --prefix=/opt/trac-1.4dev
    171171}}}
    172172then:
    173173{{{#!sh
    174 $ export PYTHONPATH=/opt/trac-1.2dev/lib/python2.7/site-packages:$PYTHONPATH
     174$ export PYTHONPATH=/opt/trac-1.4dev/lib/python2.7/site-packages:$PYTHONPATH
    175175}}}
    176176or, in your httpd.conf:
     
    178178<Location /projects/myproject>
    179179  ...
    180   PythonPath "['/opt/trac-1.2dev/lib/python2.7/site-packages'] + sys.path"
     180  PythonPath "['/opt/trac-1.4dev/lib/python2.7/site-packages'] + sys.path"
    181181  ...
    182182</Location>