Changes between Version 33 and Version 34 of TracDev/DevelopmentEnvironmentSetup
- Timestamp:
- Aug 9, 2011, 9:40:22 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracDev/DevelopmentEnvironmentSetup
v33 v34 25 25 }}} 26 26 27 '''Note:''' I don't create a directory called 'trac' yet. That comes later! In the meantime, cd (change directory)to your projects directory.27 '''Note:''' I don't create a directory called 'trac' yet. That comes later! In the meantime, `cd` (change directory) into your projects directory. 28 28 29 29 === Get Subversion === … … 46 46 * ActiveState [http://www.activestate.com/activepython/ ActivePython] 47 47 48 Mac OS X 10.5 and later has Python 2.5 pre-installed.48 Mac OS X 10.5 and later has Python >= 2.5 pre-installed. 49 49 50 50 === Get easy_install === 51 You may already have easy_installif you have "setuptools" installed. Just make sure its version is >= 0.6c10. Previous versions do not work correctly with SVN 1.6.51 You may already have `easy_install` if you have "setuptools" installed. Just make sure its version is >= 0.6c10. Previous versions do not work correctly with SVN 1.6. 52 52 53 Otherwise go to [http://peak.telecommunity.com/DevCenter/EasyInstall#installing-easy-install installing-easy-install] and follow the instructions there. However, most of the time you just take the text at [http://peak.telecommunity.com/dist/ez_setup.py ez_setup.py], save it as ez_setup.pyon your hard drive, then from the command-line prompt type:53 Otherwise go to [http://peak.telecommunity.com/DevCenter/EasyInstall#installing-easy-install installing-easy-install] and follow the instructions there. However, most of the time you just take the text at [http://peak.telecommunity.com/dist/ez_setup.py ez_setup.py], save it as `ez_setup.py` on your hard drive, then from the command-line prompt type: 54 54 {{{ 55 55 python ez_setup.py … … 75 75 source bin/activate 76 76 }}} 77 or for Windows 77 or for Windows: 78 78 {{{ 79 79 python -m virtualenv trac … … 82 82 }}} 83 83 84 If you have Trac installed in /usr/lib or /usr/local/lib, make sure to run the above virtualenv command with --no-site-packages.84 If you have Trac installed in `/usr/lib` or `/usr/local/lib`, make sure to run the above virtualenv command with `--no-site-packages`. 85 85 86 86 You'll see your command-line prompt has changed. That means our environment is ready for Trac. 87 87 88 88 === Upgrade Setuptools === 89 Just to be sure you have a recent enough version of setuptools you may try to upgrade them (this was necessary on Ubuntu 10.04 Beta). For more options on upgrading packages with easy_installsee [http://peak.telecommunity.com/DevCenter/EasyInstall#upgrading-a-package upgrading a package].89 Just to be sure you have a recent enough version of setuptools you may try to upgrade them (this was necessary on Ubuntu 10.04 Beta). For more options on upgrading packages with `easy_install` see [http://peak.telecommunity.com/DevCenter/EasyInstall#upgrading-a-package upgrading a package]. 90 90 {{{ 91 91 easy_install --upgrade setuptools … … 119 119 trac-admin test initenv 120 120 }}} 121 ''' note:''' Press return for every option.121 '''Note:''' Press return for every option. 122 122 123 123 === Make anonymous users have full access === … … 125 125 trac-admin test permission add anonymous TRAC_ADMIN 126 126 }}} 127 ''' note:''' Don't do this in production!127 '''Note:''' Don't do this in production! 128 128 129 129 === Installing the tracdeveloperplugin === … … 144 144 }}} 145 145 146 '''Note''': The -rcommand puts Trac into refresh mode so your code changes will show up quickly. See also the [TracIni#trac-section auto_reload] trac.ini flag which should be used for the changes in Genshi templates to be picked-up as well.146 '''Note''': The `-r` command puts Trac into refresh mode so your code changes will show up quickly. See also the [TracIni#trac-section auto_reload] trac.ini flag which should be used for the changes in Genshi templates to be picked-up as well. 147 147 148 To run tracdor work in the virtual environment, you must switch to the virtual environment each time a new shell is opened.148 To run `tracd` or work in the virtual environment, you must switch to the virtual environment each time a new shell is opened. 149 149 {{{ 150 150 cd test … … 153 153 154 154 === Debugging Plugins === 155 To debug a plugin, install it to your test environment using the command:155 To debug a plugin, install it into your test environment using the command: 156 156 {{{ 157 157 $ python setup.py develop -md /path/to/projenv/plugins 158 158 }}} 159 If you are experiencing troubles in debugging Trac code, make sure that PYTHONPATHin project properties doesn't contain pointers to other Trac sources. Otherwise those sources will be picked instead of the checked out sources.159 If you are experiencing troubles in debugging Trac code, make sure that `PYTHONPATH` in project properties doesn't contain pointers to other Trac sources. Otherwise those sources will be picked instead of the checked out sources. 160 160 161 161 === Web stuff === … … 169 169 * Hit the admin link 170 170 * Logging 171 - Set type to console172 - level to debug171 - Set type to `console` 172 - Set level to `debug` 173 173 174 174 === Alternative frontends === 175 To develop on Trac with Apache rather than the standalone tracd, see the [TracDev/AlternativeFrontends alternative frontends] page for information on using Apache with mod_python and mod_wsgi.175 To develop on Trac with Apache rather than the standalone `tracd`, see the [TracDev/AlternativeFrontends alternative frontends] page for information on using Apache with mod_python and mod_wsgi.