~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Martin
  • Date: 2010-04-30 10:41:34 UTC
  • mto: This revision was merged to the branch mainline in revision 5260.
  • Revision ID: gzlist@googlemail.com-20100430104134-a4fmbkfcga0t698y
Build windows standalone installer with docstrings stripped

Show diffs side-by-side

added added

removed removed

Lines of Context:
534
534
            install_data.run(self)
535
535
 
536
536
            py2exe = self.distribution.get_command_obj('py2exe', False)
537
 
            optimize = py2exe.optimize
 
537
            # GZ 2010-04-19: Setup has py2exe.optimize as 2, but give plugins
 
538
            #                time before living with docstring stripping
 
539
            optimize = 1
538
540
            compile_names = [f for f in self.outfiles if f.endswith('.py')]
539
541
            byte_compile(compile_names,
540
542
                         optimize=optimize,
541
543
                         force=self.force, prefix=self.install_dir,
542
544
                         dry_run=self.dry_run)
543
 
            if optimize:
544
 
                suffix = 'o'
545
 
            else:
546
 
                suffix = 'c'
547
 
            self.outfiles.extend([f + suffix for f in compile_names])
 
545
            self.outfiles.extend([f + 'o' for f in compile_names])
548
546
    # end of class install_data_with_bytecompile
549
547
 
550
548
    target = py2exe.build_exe.Target(script = "bzr",
692
690
                               "excludes": excludes,
693
691
                               "dll_excludes": dll_excludes,
694
692
                               "dist_dir": "win32_bzr.exe",
695
 
                               "optimize": 1,
 
693
                               "optimize": 2,
696
694
                              },
697
695
                   }
698
696