Bazaar installed from source does not work under cygwin
John Arbash Meinel
john at arbash-meinel.com
Mon Oct 1 16:15:09 BST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Alexander Belchenko wrote:
> Nicholas Allen ?8H5B:
>>> No, windows python works much worse inside cygwin, because it know
>>> nothing about emulation of posix system provided by cygwin.
>>> And absolute path mismatch is the top of iceberg.
>>>
>>> A while ago John Meinel said he used standalone bzr.exe for Cygwin.
>>> I think it's best solution for your problem.
>>>
>>> But I'm sure the right solution here: you need to install bzr on cygwin.
>> Actually, I always used the install wizard version under Cygwin with no
>> problems. I only decided to use the source one as 0.91 installer had not
>> been released yet. I would have thought that it would be possible to
>> have the same functionality when installing from source as using the
>> installer.
>
>> I have found that if I type bzr.bat it works. In the scripts directory
>> there are 2 bzr files. One is a python one called "bzr" and the other is
>> "bzr.bat". bzr.bat call bzr but it seems under Cygwin the "bzr" python
>> script is called directly instead of through the bzr.bat script.
>
> It's because Cygwin use shebang line. If you remove this line from bzr
> script then Cygwin won't try to launch this file. Furthermore, this
> shebang has no effect for windows python.
>
>> A solution I found is to rename the "bzr" script to "bzr.py" and then
>> add a bash script called "bzr" that launches the "bzr.bat" file. With
>> this setup bzr works from both Cygwin and DOS. I guess it would make
>> sense to have this as the default setup after install from source on
>> Windows wouldn't it?
>
> No, I don't think so.
> I think, if you want work on Cygwin with windows-based bzr, then
> standalone bzr.exe will help you without any twist with bzr[.py|bat|sh]
> scripts.
>
Yeah, I just realized I also have an "alias bzr=bzr.bat" in my ~/.bashrc.
But yes, removing the #!... python should do the trick as well.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHAQ72JdeBCYSNAAMRAq3yAKDY6bI6pLfPWDAvsrvL/tOc0042VgCgyijZ
Pb38NIQYg423CNKKaFMGJts=
=qT7R
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list