~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: John Arbash Meinel
  • Date: 2009-05-08 15:27:44 UTC
  • mto: This revision was merged to the branch mainline in revision 4345.
  • Revision ID: john@arbash-meinel.com-20090508152744-x8j8itnnrj6rnj0i
Give a better error message when we cannot find the TortoiseOverlays files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
602
602
        # TORTOISE_OVERLAYS_MSI_WIN32 must be set to the location of the
603
603
        # TortoiseOverlays MSI installer file. It is in the TSVN svn repo and
604
604
        # can be downloaded from (username=guest, blank password):
605
 
        # http://tortoisesvn.tigris.org/svn/tortoisesvn/TortoiseOverlays/version-1.0.4/bin/TortoiseOverlays-1.0.4.11886-win32.msi
 
605
        # http://tortoisesvn.tigris.org/svn/tortoisesvn/TortoiseOverlays
 
606
        # look for: version-1.0.4/bin/TortoiseOverlays-1.0.4.11886-win32.msi
606
607
        # Ditto for TORTOISE_OVERLAYS_MSI_X64, pointing at *-x64.msi.
607
608
        for needed in ('TORTOISE_OVERLAYS_MSI_WIN32',
608
609
                       'TORTOISE_OVERLAYS_MSI_X64'):
 
610
            url = ('http://guest:@tortoisesvn.tigris.org/svn/tortoisesvn'
 
611
                   '/TortoiseOverlays')
609
612
            if not os.path.isfile(os.environ.get(needed, '<nofile>')):
610
 
                raise RuntimeError("Please set %s to the"
611
 
                                   " location of the relevant TortoiseOverlays"
612
 
                                   " .msi installer file" % needed)
 
613
                raise RuntimeError(
 
614
                    "\nPlease set %s to the location of the relevant"
 
615
                    "\nTortoiseOverlays .msi installer file."
 
616
                    " The installers can be found at"
 
617
                    "\n  %s"
 
618
                    "\ncheck in the version-X.Y.Z/bin/ subdir" % (needed, url))
613
619
        get_tbzr_py2exe_info(includes, excludes, packages, console_targets,
614
620
                             gui_targets, data_files)
615
621
    else: