pure-python mercurial

Matt Mackall mpm at selenic.com
Tue Mar 3 23:57:08 CST 2009


On Wed, 2009-03-04 at 05:01 +0000, TK Soh wrote:
> On Wed, Mar 4, 2009 at 1:34 AM, Matt Mackall <mpm at selenic.com> wrote:
> > On Wed, 2009-03-04 at 00:59 +0000, TK Soh wrote:
> >> I read this in the UpcomingReleaseNotes for 1.2:
> >>
> >>    "added pure-Python versions of C modules (leading to some basic hg
> >> commands running on Jython)"
> >>
> >> I wonder it means now Mercurial can do away with C compiler during
> >> installation. Appreciate if someone can share one this.
> >
> > Yes.
> 
> How do I install a mercurial without the C modules using setup.py? I
> don't see changes in setup.py that's geared for pure-python
> installation. There's a changeset about adding PURE into Makefile, but
> it's not clear to me what options to pass to setup.py for this.
> 
> > But you'll get significantly reduced performance. It's mostly
> > interesting for running Mercurial inside virtual machines or similar
> > hacks.
> 
> It does simplify installation (via source) on Windows a bit. It's not
> trivial to get the C compile environment setup in Windows.

I'm gonna have to disagree with that. I posted a script just a few days
ago that grabs all the relevant components and does the build. It does
it inside of Wine, but that only makes it trickier. All it needs to be
adapted to Windows is a handy wget-equivalent.

-- 
http://selenic.com : development and support for Mercurial and Linux




More information about the Mercurial mailing list