Python Scripts using Mercurial module on Windows
stevenyi at gmail.com
Sun Jul 22 19:15:17 CDT 2007
Thanks for your reply. Downloading and building with mingw wasn't a
problem at all; now I'm stuck on yasvn2hg and svn2hg failing for other
reasons (one can't process due to something funny on this computer
when trying to connect to svn, the other can't open /dev/null).
Anyways, that was certainly progress and I think I can diagnose from
Thanks for the help!
On 7/22/07, Evan Powers <evan.powers+hg at gmail.com> wrote:
> On 7/22/07, Steven Yi <stevenyi at gmail.com> wrote:
> > I was trying to run yasvn2hg on Windows but I get "no module named
> > mercurial.ui". I've tried some other scirpts that import from
> > mercurial without luck. I used the Windows binary installer to
> > install but it did not seem to install anything into my python
> > install's site-packages. I did notice the library.zip in my
> > c:\Mercurial directory and that seems to have everything, but I am not
> > sure what from there I would need to install into my python
> > site-packages to get these scripts to work or if I should be doing
> > something altogether differently.
> The binary installers are totally self-contained (py2exe). If you want
> mercurial installed into Python's site-packages you'll have to
> download the source code, install an appropriate C compiler (MSVC or
> Mingw32, for the C extension modules), and use distutils to install
> python yourself. (See WindowsInstall on the wiki.)
> You'll also need an apropriate patch.exe in your path; I recommend the
> one from GnuWin32 (http://gnuwin32.sourceforge.net/) rather than
> Cygwin or the older UnixUtils SF project--my understanding is that the
> GnuWin32 version is the one packaged with the Windows binary
> As that's how I'm currently using Mercurial on my Windows box, I can
> probably help you with the details if you run into trouble.
> - Evan
More information about the Mercurial