~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-05-08 17:02:56 UTC
  • mfrom: (4343.2.1 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090508170256-u5k6lfa0n93h9obf
(jam) Better error when looking for TortoiseOverlays.

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: