building binaries for windows

Fredrik Lundh fredrik at pythonware.com
Sat Apr 16 23:19:24 BST 2005


in case someone wants to experiment, the attached script builds a binary
kit for windows, consisting of three files (an EXE loader, a PY bootstrap
script, and a ZIP archive containing the BZR library).

usage:

- copy the attached script to the bzr.dev directory
- run the script as
     cd bzr.dev
     python winsetup.py
  this creates three files (bin/bzr.exe, bin/bzr.py and bin/bzr.zip)
- copy/move the files from the ./bin directory to a suitable location
  on your path
- you can now run bzr from any directory, without having the python inter-
  preter in your path, having bzrlib in the pythonpath, setting up associations,
  etc.

the build script should work on any platform, provided that the Python version
you use to build the kit matches the one on your windows box (if not, you can
change the version by editing the first line in the bzr.py script).

note that you still need a Python 2.4 (or 2.3) runtime to run bzr.  the easiest
way to install the runtime is to install the Python distribution from python.org,
but most other 2.4 (or 2.3) distributions should work.

for more info on the loader, see http://effbot.org/exemaker

enjoy! /F
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: winsetup.py
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20050417/e866f2cf/attachment.diff 


More information about the bazaar mailing list