How do I "import mercurial" on Windows?
Steve Borho
steve at borho.org
Wed Nov 18 11:56:57 CST 2009
On Wed, Nov 18, 2009 at 11:47 AM, Paul Moore <p.f.moore at gmail.com> wrote:
> 2009/11/18 Greg Ward <greg-hg at gerg.ca>:
>> I'm trying to get a custom Python script using the Mercurial API
>> running on Windows. It's the simplest possible such script:
> [...]
>> So... how the heck do you run a Python script with "import mercurial"
>> on Windows? Do I need to build from source? Unpack parts of
>> library.zip?
>
> You need to install Mercurial as a Python package separately (python
> setup.py install, or build and install your own bdist_wininst - there
> aren't binaries available AFAIK). The standard Windows binary for
> Mercurial is a py2exe-packaged standalone distribution and won't
> integrate with an installed Python.
I'll generate a bdist installer for 1.4 this evening. It'll show up
in the thg-winbuild downloads page along with the py2exe package.
--
Steve Borho
More information about the Mercurial
mailing list