Changes between Version 216 and Version 217 of TracDownload
- Timestamp:
- May 10, 2021, 2:16:14 AM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDownload
v216 v217 165 165 166 166 You 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 interferenceswith the packaged Trac version you probably already have.167 We 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. 168 168 {{{#!sh 169 $ cd 1. 2-stable170 $ python setup.py install --prefix=/opt/trac-1. 2dev169 $ cd 1.4-stable 170 $ python setup.py install --prefix=/opt/trac-1.4dev 171 171 }}} 172 172 then: 173 173 {{{#!sh 174 $ export PYTHONPATH=/opt/trac-1. 2dev/lib/python2.7/site-packages:$PYTHONPATH174 $ export PYTHONPATH=/opt/trac-1.4dev/lib/python2.7/site-packages:$PYTHONPATH 175 175 }}} 176 176 or, in your httpd.conf: … … 178 178 <Location /projects/myproject> 179 179 ... 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" 181 181 ... 182 182 </Location>