1

I'm looking at two different guides for Windows HgWeb installation on IIS. The first from mercurial developers says:

On Windows, your Python version must match the version used to compile Mercurial. Otherwise, you'll get "Invalid Magic Number" errors when trying to run the CGI.

The second guide says:

Don’t waste time monkeying around with the installers. You need a version of Mercurial matching your Python install so get the source code!

This is all great, except nobody wants to tell you how to match versions of Python and Mercurial. I see no guide that gives a map correlating version numbers. That is my primary need. For example, I'm using Mercurial 1.9. I have no idea what version of Python goes with that. The second guide says my version of PyWin32 must match as well. Great.

If the version-match info is not available online, is there a command I can issue to Hg that will dump all this info on me?

In the mean time, I've found that I can't build the Mercurial source code (is this because I don't have a properly matching version of Python?).

4

1 回答 1

0

汞网

对于 HgWeb,此 Mercurial 下载页面建议使用将 Mercurial 安装为 python 模块的版本,需要 Python 2.6。

从那里,您将选择PyWin32的构建并选择 Python 2.6 的下载,因为他们为多个版本构建它。

这两个决定也有 32 位和 64 位版本。

建造

Mercurial 主下载页面提示支持 Python 2.4 到 2.7,因此如果您仍希望自己构建,可以尝试使用 2.6 或 2.7 构建。在 Windows 上构建的 wiki 页面已过时,提到 Mercurial 1.3,但也提到 Python 2.6。

于 2011-07-05T03:58:12.583 回答