[MERGE] Add 'build_release.py' script
John Arbash Meinel
john at arbash-meinel.com
Thu Nov 6 18:36:49 GMT 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The attached includes the build_release.py script that I'm using to
build the win32 all-in-one installer.
I figured it would be good to make this accessible to other people, and
the best way I could come up with is to just include it in bzr.
The actual VERSIONS will change over time, and I don't think we need a
new one for each release. But if there are any major changes to the
script, we can keep it up-to-date.
At this point, it
1) Will bootstrap all dependencies if someone doesn't have
bzr-svn/bzrtools/qbzr checked out.
2) Wipes the release directory before building.
3) Uses the release tags to grab snapshots of plugins.
4) Nukes snapshot dirs to help ensure consistent releases.
5) Stages the latest version of a bzr release branch, and then
'install's all of the plugins into that directory. And then calls "make
installer".
6) Updates your 'tortoisebzr' installation to whatever is the 'tip' of
lp:tortoisebzr. This may not be the best choice, as I don't know that
the branch is considered stable. But considering tbzr itself isn't
really considered stable yet, I figured it was good enough.
At this point, building a release seems to be as easy as
python build_release.py
And if this is not an upgrade from a release candidate, then you just
have to update the VERSIONS dict with the various packages.
This is the script I used to build both the 1.8 installer and the
1.9rc1-3 installer, so I know it at least works on our shared Windows host.
Note, it *doesn't* download all the dependencies like PyQt, nor does it
set up all the ENV vars necessary to build the installer. Off-list I
documented what it took for me to setup the shared windows host, and it
was a good 20 steps or so. It would probably be good to write that up as
more official documentation, and then try to keep it up-to-date. But for
now, at least we have this.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkkTOUEACgkQJdeBCYSNAAM5wACgqPgwf+mL66SojjEcGOn87jpv
pVcAn13Pw4tig+VBKbpLAoxYTgldpycn
=NnoZ
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: add_build_release.patch
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20081106/c47917aa/attachment.diff
More information about the bazaar
mailing list