~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Parth Malwankar
  • Date: 2010-07-14 08:53:58 UTC
  • mto: (5050.3.7 2.2)
  • mto: This revision was merged to the branch mainline in revision 5365.
  • Revision ID: parth.malwankar@gmail.com-20100714085358-6un4ny0cn908spkq
better error message for RecursiveBind

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
import os
10
10
import os.path
11
11
import sys
12
 
import copy
13
12
 
14
13
if sys.version_info < (2, 4):
15
14
    sys.stderr.write("[ERROR] Not a supported Python version. Need 2.4+\n")
558
557
                                     company_name = "Canonical Ltd.",
559
558
                                     comments = META_INFO['description'],
560
559
                                    )
561
 
    gui_target = copy.copy(target)
562
 
    gui_target.dest_base = "bzrw"
563
560
 
564
561
    packages = BZRLIB['packages']
565
562
    packages.remove('bzrlib')
650
647
    console_targets = [target,
651
648
                       'tools/win32/bzr_postinstall.py',
652
649
                       ]
653
 
    gui_targets = [gui_target]
 
650
    gui_targets = []
654
651
    data_files = topics_files + plugins_files
655
652
 
656
653
    if 'qbzr' in plugins:
695
692
                               "dll_excludes": dll_excludes,
696
693
                               "dist_dir": "win32_bzr.exe",
697
694
                               "optimize": 2,
698
 
                               "custom_boot_script":
699
 
                                        "tools/win32/py2exe_boot_common.py",
700
695
                              },
701
696
                   }
702
 
 
703
 
    # We want the libaray.zip to have optimize = 2, but the exe to have
704
 
    # optimize = 1, so that .py files that get compilied at run time
705
 
    # (e.g. user installed plugins) dont have their doc strings removed.
706
 
    class py2exe_no_oo_exe(py2exe.build_exe.py2exe):
707
 
        def build_executable(self, *args, **kwargs):
708
 
            self.optimize = 1
709
 
            py2exe.build_exe.py2exe.build_executable(self, *args, **kwargs)
710
 
            self.optimize = 2
711
 
 
712
697
    if __name__ == '__main__':
713
698
        setup(options=options_list,
714
699
              console=console_targets,
715
700
              windows=gui_targets,
716
701
              zipfile='lib/library.zip',
717
702
              data_files=data_files,
718
 
              cmdclass={'install_data': install_data_with_bytecompile,
719
 
                        'py2exe': py2exe_no_oo_exe},
 
703
              cmdclass={'install_data': install_data_with_bytecompile},
720
704
              )
721
705
 
722
706
else: