Orbits
1
|
Public Member Functions | |
def | __init__ |
def | add_dependency_links |
def | find_requirement |
Private Member Functions | |
def | _sort_locations |
def | _link_sort_key |
def | _sort_versions |
def | _find_url_name |
def | _get_pages |
def | _sort_links |
def | _package_versions |
def | _known_extensions |
def | _link_package_versions |
def | _egg_info_matches |
def | _get_page |
Private Attributes | |
_have_warned_dependency_links | |
FIXME: this shouldn't be global list this, it should only apply to requirements of the package that specifies the dependency_links value FIXME: also, we should track comes_from (i.e., use Link) More... | |
Static Private Attributes | |
tuple | _egg_fragment_re = re.compile(r'#egg=([^&]*)') |
tuple | _egg_info_re = re.compile(r'([a-z0-9_.]+)-([a-z0-9_.-]+)', re.I) |
tuple | _py_version_re = re.compile(r'-py([123]\.?[0-9]?)$') |
This finds packages. This is meant to match easy_install's technique for looking for packages, by reading pages and looking for appropriate links
def pip.index.PackageFinder.__init__ | ( | self, | |
find_links, | |||
index_urls, | |||
use_wheel = True , |
|||
allow_external = [] , |
|||
allow_unverified = [] , |
|||
allow_all_external = False , |
|||
allow_all_prereleases = False , |
|||
process_dependency_links = False , |
|||
session = None |
|||
) |
|
private |
|
private |
Finds the true URL name of a package, when the given name isn't quite correct. This is usually used to implement case-insensitivity.
|
private |
|
private |
Yields (page, page_url) from the given locations, skipping locations that have errors, and adding download/homepage links
|
private |
|
private |
Return an iterable of triples (pkg_resources_version_key, link, python_version) that can be extracted from the given link. Meant to be overridden by subclasses, not called by clients.
|
private |
Function used to generate link sort key for link tuples. The greater the return value, the more preferred it is. If not finding wheels, then sorted by version only. If finding wheels, then the sort order is by version, then: 1. existing installs 2. wheels ordered via Wheel.support_index_min() 3. source archives Note: it was considered to embed this logic into the Link comparison operators, but then different sdist links with the same version, would have to be considered equal
|
private |
|
private |
|
private |
Sort locations into "files" (archives) and "urls", and return a pair of lists (files,urls)
|
private |
Bring the latest version (and wheels) to the front, but maintain the existing ordering as secondary. See the docstring for `_link_sort_key` for details. This function is isolated for easier unit testing.
def pip.index.PackageFinder.add_dependency_links | ( | self, | |
links | |||
) |
def pip.index.PackageFinder.find_requirement | ( | self, | |
req, | |||
upgrade | |||
) |
|
staticprivate |
|
staticprivate |
|
private |
FIXME: this shouldn't be global list this, it should only apply to requirements of the package that specifies the dependency_links value FIXME: also, we should track comes_from (i.e., use Link)
|
staticprivate |
pip.index.PackageFinder.allow_all_external |
pip.index.PackageFinder.allow_all_prereleases |
pip.index.PackageFinder.allow_external |
pip.index.PackageFinder.allow_unverified |
pip.index.PackageFinder.cache |
pip.index.PackageFinder.dependency_links |
pip.index.PackageFinder.find_links |
pip.index.PackageFinder.index_urls |
pip.index.PackageFinder.logged_links |
pip.index.PackageFinder.need_warn_external |
pip.index.PackageFinder.need_warn_unverified |
pip.index.PackageFinder.process_dependency_links |
pip.index.PackageFinder.session |
pip.index.PackageFinder.use_wheel |
Copyright 2014 Google Inc. All rights reserved.