diff paint/package.py @ 16:e6cdc58fc4f5

more helpful debugging
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 24 Feb 2012 16:04:22 -0800
parents 8c8b7482772f
children e74fc40e1f64
line wrap: on
line diff
--- a/paint/package.py	Fri Feb 24 15:53:26 2012 -0800
+++ b/paint/package.py	Fri Feb 24 16:04:22 2012 -0800
@@ -85,7 +85,9 @@
             return self._egg_info
 
         directory = self.path()
-        assert os.path.exists(os.path.join(directory, 'setup.py'))
+        setup_py = os.path.join(directory, 'setup.py')
+        if not os.path.exists(setup_py):
+            raise AssertionError("%s does not exist")
 
         # setup the egg info
         call([sys.executable, 'setup.py', 'egg_info'], cwd=directory, stdout=PIPE)