Use the egg-info helper to get the name.

Change-Id: I60b36ed0e4eec8b4a7c2f64eb5749b746236054e
This commit is contained in:
Joshua Harlow 2013-06-19 19:01:08 -07:00
parent cc1ac3d71f
commit e4c595a2df

View File

@ -117,9 +117,8 @@ class DependencyHandler(object):
def _get_python_names(package_dirs):
python_names = []
for pkg_dir in package_dirs:
cmdline = ["python", "setup.py", "--name"]
python_names.append(sh.execute(cmdline, cwd=pkg_dir)[0].
splitlines()[-1].strip())
pkg_details = pip_helper.get_directory_details(pkg_dir)
python_names.append(pkg_details['name'])
return python_names
def package_start(self):