The Python sources don't need a compilation step, but a few Mercurial modules are programmed in C: base85.c, bdiff.c, diffhelpers.c, mpatch.c and osutil.c (http://selenic.com/repo/hg/file/tip/mercurial/). These must be compiled with a C-compiler. The steps below worked on a Windows XP SP2, that had a Microsoft Visual C++ installed. error: Python was built with Visual Studio 2003;extensions must be built with a compiler than can generate compatible binaries.Visual Studio 2003 was not found on this system. so , I don't have VC2003, can someone create a copy? why that thers's no such copy already exist?
> Date: Fri, 22 Feb 2008 11:32:17 +0100> From: [EMAIL PROTECTED]> To: > [email protected]> Subject: [Trac] Re: can I use Trac with > Mercurial on windows> > > [EMAIL PROTECTED] wrote:> >> Hello,> > [EMAIL > PROTECTED] wrote:> > I just followed the instuction from > http://trac.edgewall.org/wiki/TracMercurial but failed.> > > > It says that > hg is not recognized after I build The TracMercurial plugin egg and added to > the plugins folder of the environment,> > You need to be able to import the > mercurial package from the python> interpreter you're using for running > Trac.> For example, if you're starting tracd from a shell, then from the > same> shell you need to be able to do the following:> > $ python> >>> import > mercurial> >>>> > If you get an import error at this point, Mercurial itself > was not> properly installed for this interpreter.> >> > > > > ***> > > > > sure, 'import mercurial' not work!> > > > but I can't figure out how to > enable it. I searched http://www.selenic.com/mercurial/ but find nothing like > svn-python-1.4.6.win32-py2.5.exe. Mercurial just works fine even if 'import > mercurial' not working.> > > > sorry but can you help me that is there a > seperate package for python to enable 'import mercurial' ?> > Ah the joys of > py2exe! ;-)> > Please read> > http://www.selenic.com/mercurial/wiki/index.cgi/WindowsInstallers> > The > version you have installed doesn't allow you to reuse the libraries> in > another context than the hg executable (I remember having tried to> unzip the > library.zip and use that by extending the PYTHONPATH, but I> don't remember > if that worked, probably yes).> > As written in the above wiki page, you may > have better luck with the> installer provided on the qct page, see> > http://qct.sourceforge.net/Mercurial-NSI.html> > Of course, if you have a > development environment, you might prefer to> build mercurial from source. In > this case, please go through the> > http://www.selenic.com/mercurial/wiki/index.cgi/BuildingOnWindows page,> as > there are many caveats (as you figured out by yourself with the bdiff> > issue).> > -- Christian> > > _________________________________________________________________ 手机也能上 MSN 聊天了,快来试试吧! http://mobile.msn.com.cn/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
