~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: John Arbash Meinel
  • Date: 2011-05-26 21:24:36 UTC
  • mto: This revision was merged to the branch mainline in revision 5928.
  • Revision ID: john@arbash-meinel.com-20110526212436-cj4kofx612fy33ek
Tags: bzr-2.4b3-win32-1
Pass the build_mo command class to more of the setup() calls.

Show diffs side-by-side

added added

removed removed

Lines of Context:
502
502
            # help pages
503
503
            'data_files': find_docs(),
504
504
            # for building pyrex extensions
505
 
            'cmdclass': {'build_ext': build_ext_if_possible},
 
505
            'cmdclass': command_classes,
506
506
           }
507
507
 
508
508
    ARGS.update(META_INFO)
509
509
    ARGS.update(BZRLIB)
510
510
    ARGS.update(PKG_DATA)
511
 
    
 
511
 
512
512
    setup(**ARGS)
513
513
 
514
514
elif 'py2exe' in sys.argv:
725
725
            self.optimize = 2
726
726
 
727
727
    if __name__ == '__main__':
 
728
        command_classes['install_data'] = install_data_with_bytecompile
 
729
        command_classes['py2exe'] = py2exe_no_oo_exe
728
730
        setup(options=options_list,
729
731
              console=console_targets,
730
732
              windows=gui_targets,
731
733
              zipfile='lib/library.zip',
732
734
              data_files=data_files,
733
 
              cmdclass={'install_data': install_data_with_bytecompile,
734
 
                        'py2exe': py2exe_no_oo_exe},
 
735
              cmdclass=command_classes,
735
736
              )
736
737
 
737
738
else: