Remy Blank-2 wrote: > > Ah, yes, that makes sense if you run a "real" Trac instance on your > development machine. It does make development setup more difficult. > > You could use --no-site-packages, and try symlinking the dependencies > from /usr/lib into your virtualenv's site-packages (e.g. svn, libsvn, > pytz, pygments, ...). > The symlinking DOES work! I had to symlink the libsvn and svn directories to specifically get the browser module working. It doesn't seem to work to create an svn.pth and libsvn.pth in `site-packages`, however. I had created these two files: (tracdev)$ cat svn.pth /usr/lib/pymodules/python2.6/svn (tracdev)$ cat libsvn.pth /usr/lib/pymodules/python2.6/libsvn I'm sure the paths are correct in those files because I generated the symlinks directory from the contents of those files, and the symlinks get things working. (tracdev)$ ln -s `cat svn.pth` (tracdev)$ ln -s `cat libsvn.pth` I don't even know if it is better or worse to create .pth files rather than symlinks ... but from what I read it should work to create .pth files in the `site-packages` directory, and the .pth files DO cause the relevant paths to be appended to the python path. (tracdev)$ python >>> import sys >>> sys.path ... '/home/rjollos/tracdev/lib/python2.6/site-packages', '/usr/lib/pymodules/python2.6/libsvn', '/usr/lib/pymodules/python2.6/svn'] Anyway, I'm up and running now. Thanks everyone! -- View this message in context: http://old.nabble.com/Questions-about-setting-up-Trac-development-environment-tp27011625p27083710.html Sent from the Trac Dev mailing list archive at Nabble.com.
-- 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.
