diff paint/package.py @ 38:c9d8abb2026f

error handling
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 30 Mar 2012 15:10:49 -0700
parents 36e70712fc9a
children cc25499e9485
line wrap: on
line diff
--- a/paint/package.py	Fri Mar 30 15:06:17 2012 -0700
+++ b/paint/package.py	Fri Mar 30 15:10:49 2012 -0700
@@ -124,7 +124,13 @@
             raise AssertionError("%s does not exist" % setup_py)
 
         # setup the egg info
-        call([sys.executable, 'setup.py', 'egg_info'], cwd=directory, stdout=subprocess.PIPE)
+        try:
+            call([sys.executable, 'setup.py', 'egg_info'], cwd=directory, stdout=subprocess.PIPE)
+        except BaseException, e:
+            print "Failure to generate egg_info"
+            print ' - src: %s' % self.src
+            print ' - directory: %s' % directory
+            raise
 
         # get the .egg-info directory
         egg_info = [i for i in os.listdir(directory)