예제 #1
0
파일: list.py 프로젝트: saxix/pip
 def output_package_listing(self, installed_packages):
     for dist in installed_packages:
         if dist_is_editable(dist):
             line = '%s (%s, %s)' % (dist.project_name, dist.version, dist.location)
         else:
             line = '%s (%s)' % (dist.project_name, dist.version)
         logger.notify(line)
예제 #2
0
 def output_package_listing(self, installed_packages):
     installed_packages = sorted(installed_packages, key=lambda dist: dist.project_name.lower())
     for dist in installed_packages:
         if dist_is_editable(dist):
             line = '%s (%s, %s)' % (dist.project_name, dist.version, dist.location)
         else:
             line = '%s (%s)' % (dist.project_name, dist.version)
         logger.notify(line)
예제 #3
0
 def output_package_listing(self, installed_packages):
     installed_packages = sorted(installed_packages,
                                 key=lambda dist: dist.project_name.lower())
     for dist in installed_packages:
         if dist_is_editable(dist):
             line = '%s (%s, %s)' % (dist.project_name, dist.version,
                                     dist.location)
         else:
             line = '%s (%s)' % (dist.project_name, dist.version)
         logger.notify(line)