[win32] bzr.exe launcher (part2). Help needed!
Alexander Belchenko
bialix at ukr.net
Sun Jan 15 22:50:21 GMT 2006
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
More information about the bazaar
mailing list