On Jan 4, 2010, at 3:21 AM, Ryan J Ollos wrote:

>
> Hello,
>
> A few questions about settings up the Trac development environment.
>
> 1. When running `python setup.py develop` for Genshi and Trac as  
> described
> in [1], I've found that I need to run the command as sudo, or else I  
> get the
> error [3].  Am I doing something wrong, or should the instructions be
> updated?
>

By default it would try to install into a global folder, so yes, you  
would need to be root. If you want to do it that way, use virtualenv.

> 2. I've followed the directions as described in the docs [2], and  
> edited
> /etc/apache2/sites-enabled/trac to (I think) put the python egg  
> cache within
> the ~/tracdev directory, where tracdev contains:
>
>> ls tracdev
> bin                   genshi-trunk  lib   tracdeveloperplugin
> genshi-advanced-i18n  include       test  trac-trunk
>
>> cat /etc/apache2/sites-enabled/trac
> <Location /trac>
>  SetHandler mod_python
>  PythonInterpreter main_interpreter
>  PythonHandler trac.web.modpython_frontend
>  PythonOption TracEnvParentDir /var/lib/trac
>  PythonOption TracUriRoot /trac
>  SetEnv PYTHON_EGG_CACHE /home/rjollos/tracdev
> </Location>
>

Make that a PythonOption. Its a long story involving setuptool's  
braindead init framework.

On a related note, you really don't want to use mod_py for  
development. You want to use tracd. For an example dev environment,  
look at https://coderanger.net/svn/projects/trac/devenv/

--Noah

--

You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en.


Reply via email to