Rev 5260: (lifeless) Make the installer on windows strip non-plugin docstrings. in file:///home/pqm/archives/thelove/bzr/%2Btrunk/
Canonical.com Patch Queue Manager
pqm at pqm.ubuntu.com
Thu May 27 03:00:31 BST 2010
At file:///home/pqm/archives/thelove/bzr/%2Btrunk/
------------------------------------------------------------
revno: 5260 [merge]
revision-id: pqm at pqm.ubuntu.com-20100527020027-9vv0212agl257rt7
parent: pqm at pqm.ubuntu.com-20100527015844-ya4jahnwjx5y8ej2
parent: gzlist at googlemail.com-20100525180830-4ub039cj4xbt8fnl
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Thu 2010-05-27 03:00:27 +0100
message:
(lifeless) Make the installer on windows strip non-plugin docstrings.
(Martin [gz])
modified:
NEWS NEWS-20050323055033-4e00b5db738777ff
setup.py setup.py-20050314065409-02f8a0a6e3f9bc70
=== modified file 'NEWS'
--- a/NEWS 2010-05-26 07:33:59 +0000
+++ b/NEWS 2010-05-27 02:00:27 +0000
@@ -174,6 +174,12 @@
be interpreted as a boolean.
(Vincent Ladeuil)
+* The all-in-one Windows installer will now be built with docstrings stripped
+ from the library zip, reducing the size and slightly improving cold startup
+ time. Bundled plugins are unchanged for the moment, but if adding other new
+ plugins to an all-in-one installation, ensure they are compiled and
+ installed with -O1 or help may not work. (Martin [gz])
+
Documentation
*************
=== modified file 'setup.py'
--- a/setup.py 2010-04-19 21:04:31 +0000
+++ b/setup.py 2010-05-27 02:00:27 +0000
@@ -532,17 +532,15 @@
install_data.run(self)
py2exe = self.distribution.get_command_obj('py2exe', False)
- optimize = py2exe.optimize
+ # GZ 2010-04-19: Setup has py2exe.optimize as 2, but give plugins
+ # time before living with docstring stripping
+ optimize = 1
compile_names = [f for f in self.outfiles if f.endswith('.py')]
byte_compile(compile_names,
optimize=optimize,
force=self.force, prefix=self.install_dir,
dry_run=self.dry_run)
- if optimize:
- suffix = 'o'
- else:
- suffix = 'c'
- self.outfiles.extend([f + suffix for f in compile_names])
+ self.outfiles.extend([f + 'o' for f in compile_names])
# end of class install_data_with_bytecompile
target = py2exe.build_exe.Target(script = "bzr",
@@ -690,7 +688,7 @@
"excludes": excludes,
"dll_excludes": dll_excludes,
"dist_dir": "win32_bzr.exe",
- "optimize": 1,
+ "optimize": 2,
},
}
More information about the bazaar-commits
mailing list