[tahoe-lafs-trac-stream] [zetuptoolz] #3: report what distribution you were trying to compile

zetuptoolz trac at tahoe-lafs.org
Thu May 31 15:56:37 UTC 2012


#3: report what distribution you were trying to compile
----------------------------+---------------------------------------
     Reporter:  davidsarah  |      Owner:  somebody
         Type:  defect      |     Status:  new
     Priority:  major       |  Milestone:
    Component:  component1  |    Version:
   Resolution:              |   Keywords:  usability error-reporting
Launchpad Bug:              |
----------------------------+---------------------------------------

Comment (by zooko):

 Here's a patch which includes the information in the exception object.
 Another patch is needed to print out the error in a way the user can read.
 I suspect the presence of a stack trace at all will cause the user not to
 read the error message.

 {{{
 --- /home/zooko/playground/tahoe-
 lafs/dw/setuptools-0.6c16dev3.egg/setuptools/command/easy_install.py
 2012-05-14 01:44:25.117209659 -0600
 +++ setuptools-0.6c16dev3.egg/setuptools/command/easy_install.py
 2012-05-31 09:50:39.836000109 -0600
 @@ -480,7 +480,11 @@
          log.info("Processing %s", os.path.basename(download))

          if install_needed:
 -            dists = self.install_eggs(spec, download, tmpdir)
 +            try:
 +                dists = self.install_eggs(spec, download, tmpdir)
 +            except DistutilsError, e:
 +                e.args = tuple(e.args + (spec,))
 +                raise
              for dist in dists:
                  self.process_distribution(spec, dist, deps)
          else:
 }}}

-- 
Ticket URL: <https://tahoe-lafs.org/trac/zetuptoolz/ticket/3#comment:1>
zetuptoolz <https://tahoe-lafs.org/trac/zetuptoolz>



More information about the tahoe-lafs-trac-stream mailing list