Win32 hg.exe in single file

Paul Moore p.f.moore at gmail.com
Wed Jul 23 04:55:23 CDT 2008


On 23/07/2008, Alexandr N Zamaraev <tonal at promsoft.ru> wrote:
> 1) Many archive viewers (Far, Total Comander, 7zip...) can show a files
> inside the zip-exe. :-)

Sadly, WinZip can't (although that's a problem with winzip, not with
the idea :-))

> 2) Without library.zip we have 3 file + mercurial subdir (97 files).
> In mercurial subdir only web templates. They are not needed if you do
> not use hg as a server. IMHO Not many people use it.
> w9xpopen.exe - need only for w9x systems. Their number is small and
> decreasing.
> msvcr71.dll - Need for work python intrepreter. But Many systems already
> contain .dll because it uses a large number of programmes.
> Thus, in a large number of cases, you can use just one file - hg.exe

It sounds like you're building differently than me. If you include
DLLs in the zip file, then extensions like convert (for Subversion)
don't work at all. Are you using -b 1 as an argument to setup.py
py2exe? Please see the wiki page BuildingWindowsInstaller (section
AdditionalPackages) - there is a note there specifically advising
against -b 1.

> 3) The system may be several programmes build through py2exe. Their
> library.zip files may conflict.

Shouldn't be relevant - the library.zip is picked up from the same
directory as the executable.

> 4) I come across with errors, where update library.zip but forgot to
> update prog.exe.

That sounds like an error in the installation process, rather than a
problem with having a library.zip.

If you don't use -b 1, therefore, the benefit is minimal. With -b 1,
however, I see your point. But if you have the Subversion bindings
installed with your Python, then the built Mercurial crashes when
convering a Subversion repo if built with -b 1. My hope is that at
some point the standard installer will support convert from
subversion, and at that stage -b 1 will no longer be used.

So I'm afraid I'm still against this patch, unless it can somehow be
made conditional (and off by default). But it's a minor issue to me, I
just think it's going against the direction I'd like to see things
going (away from -b1).

Paul.


More information about the Mercurial-devel mailing list