On 1/9/2010 11:41 PM, lynda wrote:
I have BitNami Trac Stack installed, which has python 2.5. I also have
Python 2.6 installed in my C:\Python26 and set it in system path or
Environment variable. I would like to create trac plugin egg file for
xmlRPC plugin, SpamFilter, HttpAuth so I can insatll them. I
donwloaded all these plugins to a plugin folder I create
C:\Program Files\BitNamiTrac\plugins\HttpAuth
C:\Program Files\BitNamiTrac\plugins\XMLRPC

then I go to each plugin folder, use command :
python setup.py bdist_egg
I got all py2.6 eggs instead of py2.5. I need to have py2.5 eggs for
BitNami. How do I do it?

You should use the python.exe provided by your BitNami installation (here C:\Program Files\BitNami Trac Stack\python\python.exe).


Another newbie question, setup.py created TracHttpAuth.egg-info,
directories build and bdist. Is only the dbist/TracHTTPAuth-1.1-
py2.6.egg I needed?

...py2.5.egg as discussed above, yes.

  I just put this egg file trac project plugin
folder, then enable it in trac.ini.

You only need to activate plugins that are installed globally, it's not necessary for those which are put in the <tracenv>/plugins folder.

I have been reading
http://trac.edgewall.org/wiki/TracPlugins on trac plugin installation,
it is clear to me that I can go to the my downloaded plugin source
folder to use command python setup.py bdist_egg to get egg file.
However, for all projects: which directory that I should to go to use
command like easy_install TracSpamFilter ? In  my case, is it C:
\Program Files\BitNamiTrac\trac\Script or C:\Program Files\BitNamiTrac
\python\Script? When I use the easy_install command, where is the
plugin file installed?

I've not tested, but both should be equivalent. However, that won't be enough as there's a "quirk" in the BitNami install structure which mandates you to copy again everything installed that way also below C:\Program Files\BitNami Trac Stack\apache2\bin\Lib\site-packages.

Bottom line: it would be nice if the BitNami people would add to their README.txt a more detailed explanation about how to install Trac plugins in the Trac stack ;-)

-- Christian

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" 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-users?hl=en.


Reply via email to