Skip to content

Commit

Permalink
For issue pypa#57 pip wrongly selects a macosx binary .zip file
Browse files Browse the repository at this point in the history
Instead of a source file it downloads a binary macosx .zip file
which contains a binary installer.
  • Loading branch information
illume committed Dec 15, 2011
1 parent 128f15c commit c8d11de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pip/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,11 @@ def _link_package_versions(self, link, search_name):
logger.debug('Skipping link %s; unknown archive format: %s' % (link, ext))
self.logged_links.add(link)
return []
if "macosx10" in link.path and ext in ('.zip'):
if link not in self.logged_links:
logger.debug('Skipping link %s; macosx10 one' % (link))
self.logged_links.add(link)
return []
version = self._egg_info_matches(egg_info, search_name, link)
if version is None:
logger.debug('Skipping link %s; wrong project name (not %s)' % (link, search_name))
Expand Down

0 comments on commit c8d11de

Please sign in to comment.