[From nobody Wed Sep 28 10:30:43 2005 Message-ID: <433A6D56.2080604@users.sourceforge.net> Date: Wed, 28 Sep 2005 12:15:50 +0200 From: Zbynek Winkler <zwin@users.sourceforge.net> User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: mercurial@selenic.com Subject: Re: How to create the standalone windows installer References: <433A5B94.7090401@users.sourceforge.net> In-Reply-To: <433A5B94.7090401@users.sourceforge.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Zbynek Winkler wrote: > Hello! > > I'd like to create the standalone windows installer from the current > tip for my colleagues. How would I do that? I've found that I can use > the 'bdist_wininst' option for setup.py but unfortunately that is not > it :( Any help appreciated. Ok, I've found out that I need to install py2exe. However py2exe doesn't work for me. I am getting some error because there is no __init__.py in hgext. Putting empty __init__.py in hgext fixes the problem for me. Running "python.exe setup.py py2exe -b 1" creates fairly similar layout to that of the installer. Only the 'templates' directory in located under mercurial subdirectory. I am not going to use http serving on windows anyway so I don't really care. I've added the Mercurial.ini, patch.exe and TortoisePlink.exe. I've added [ui] ssh = TortoisePlink.exe to the ini file, but it seems to be ignored. pulling from ssh://.... searching for changes remote: 'ssh' is not recognized as an internal or external command, remote: operable program or batch file. abort: unexpected response ''! And the error is local and not remote. May be we should first try to somehow check for the existence of the sshcmd and report proper error when it is not found. When I add --ssh tortoiseplink to the command line everything works fine. The reason seems to be the hardcoded path in util.py, line 374 :(. Replacing the line with rcpath = (os.path.dirname(sys.argv[0]) + r'\mercurial.ini', fixes the problem with for me. Zbynek -- http://zw.matfyz.cz/ http://robotika.cz/ Faculty of Mathematics and Physics, Charles University, Prague, Czech Republic ]