# HG changeset patch # User Jeff Hammel # Date 1330128262 28800 # Node ID e6cdc58fc4f53bfcc390ba096469329b3386eecc # Parent 8c8b7482772fe3ad47c7d888903ce997a5cc85fd more helpful debugging diff -r 8c8b7482772f -r e6cdc58fc4f5 paint/package.py --- 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)