comparison 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
comparison
equal deleted inserted replaced
15:8c8b7482772f 16:e6cdc58fc4f5
83 if self._egg_info: 83 if self._egg_info:
84 # return cached copy 84 # return cached copy
85 return self._egg_info 85 return self._egg_info
86 86
87 directory = self.path() 87 directory = self.path()
88 assert os.path.exists(os.path.join(directory, 'setup.py')) 88 setup_py = os.path.join(directory, 'setup.py')
89 if not os.path.exists(setup_py):
90 raise AssertionError("%s does not exist")
89 91
90 # setup the egg info 92 # setup the egg info
91 call([sys.executable, 'setup.py', 'egg_info'], cwd=directory, stdout=PIPE) 93 call([sys.executable, 'setup.py', 'egg_info'], cwd=directory, stdout=PIPE)
92 94
93 # get the .egg-info directory 95 # get the .egg-info directory