~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

(jameinel) (bug #780544) when updating the WT,
 allow it to be done with a fast delta,
 rather than setting the state from scratch. (John A Meinel)

Show diffs side-by-side

added added

removed removed

Lines of Context:
478
478
    packages.append('sqlite3')
479
479
 
480
480
 
481
 
def get_fastimport_py2exe_info(includes, excludes, packages):
482
 
    # This is the python-fastimport package, not to be confused with the
483
 
    # bzr-fastimport plugin.
484
 
    packages.append('fastimport')
485
 
 
486
 
 
487
481
if 'bdist_wininst' in sys.argv:
488
482
    def find_docs():
489
483
        docs = []
508
502
            # help pages
509
503
            'data_files': find_docs(),
510
504
            # for building pyrex extensions
511
 
            'cmdclass': command_classes,
 
505
            'cmdclass': {'build_ext': build_ext_if_possible},
512
506
           }
513
507
 
514
508
    ARGS.update(META_INFO)
515
509
    ARGS.update(BZRLIB)
516
510
    ARGS.update(PKG_DATA)
517
 
 
 
511
    
518
512
    setup(**ARGS)
519
513
 
520
514
elif 'py2exe' in sys.argv:
676
670
    if 'svn' in plugins:
677
671
        get_svn_py2exe_info(includes, excludes, packages)
678
672
 
679
 
    if 'fastimport' in plugins:
680
 
        get_fastimport_py2exe_info(includes, excludes, packages)
681
 
 
682
673
    if "TBZR" in os.environ:
683
674
        # TORTOISE_OVERLAYS_MSI_WIN32 must be set to the location of the
684
675
        # TortoiseOverlays MSI installer file. It is in the TSVN svn repo and
734
725
            self.optimize = 2
735
726
 
736
727
    if __name__ == '__main__':
737
 
        command_classes['install_data'] = install_data_with_bytecompile
738
 
        command_classes['py2exe'] = py2exe_no_oo_exe
739
728
        setup(options=options_list,
740
729
              console=console_targets,
741
730
              windows=gui_targets,
742
731
              zipfile='lib/library.zip',
743
732
              data_files=data_files,
744
 
              cmdclass=command_classes,
 
733
              cmdclass={'install_data': install_data_with_bytecompile,
 
734
                        'py2exe': py2exe_no_oo_exe},
745
735
              )
746
736
 
747
737
else: