[win32] bzr.exe launcher (part2). Help needed!

John A Meinel john at arbash-meinel.com
Mon Jan 16 07:08:04 GMT 2006


Alexander Belchenko wrote:
> I create bzr.exe launcher that launch bzr script as simple as `bzr`. No
> more need bzr.bat batch launcher.
> You could download it from http://bzr.onembedding.com/bzr.exe.bcc55/bzr.zip
> 
> Bzr branch http://bzr.onembedding.com/bzr.exe.bcc55/
> 
> This exe was builded with Borland Bcc 5.5 free command line tools
> package and compressed with WinUpacker utility. It have size 26.5 KB.
> Not so much, I guess? But original Fredrik Lundh's exemaker compressed
> with upx have size of 4KB.
> 
> Anyway, this bzr.exe pass all tests that bzr script pass on my machine
> (bzr.dev revno1515 has one broken test:
> test_inv.TestExecutable.test_stays_executable -- Windows has not
> executable bit support).
> 
> Above was good news.
> 
> But there is and a little problem. From my commit message:
> 
>   This version adapted to build with Borland BCC 5.5 free compiler tool.
>   Probably because Python 2.4 compiled with MSVC++ 7.1 this bzr.exe
>   launcher slightly incompatible with python24.dll.
>   At least and original Fredrik Lundh's exemaker and my bzr.exe
>   did not set sys.executable properly when python interpreter starts
>   and this variable take the value of exe file that launch interpreter.
> 
>       (To test it create simple python script with this line:
> 
>       import sys; print sys.executable
> 
>       and run it with exemaker launcher and check output. See?)
> 
>   I make workaround by invoking interpreter manually (original exemaker
>   invoke Py_Main function) and before executing bzr script I set
>   sys.executable manually. It's very dirty hack.
> 
> 
> Help needed! If someone have access to windows machine with MSVC++ 7.1
> installed and could compile my launcher -- let me know. I have the
> version of launcher that needs to be build with msvc 7.1 and check
> behaviour of sys.executable.
> 
> -- 
> Alexander
> 
> 

I have windows with MSVC++ 7.1. However, I have to wonder what is wrong
with:
http://www.py2exe.org/

I've used it for a lot of projects. I believe it works with a
precompiled executable, and creates a zip file of the source code. Which
python can handle just fine, since it natively supports zip-file source
repositories.

Anyway, I've used it for a bunch of my projects, and I've always been
quite happy with it.
I don't think it requires a compiler to work. Though I may be wrong,
since I've always had one.

But if you need something from me, just ask.
John
=:->


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060116/006e2eca/attachment.pgp 


More information about the bazaar mailing list