|
Orbits
1
|
Public Member Functions | |
| def | __init__ |
| def | __repr__ |
| def | __str__ |
| def | check_installed_files |
| def | list_installed_files |
| def | list_distinfo_files |
| def | __eq__ |
Public Member Functions inherited from pip._vendor.distlib.database.BaseInstalledDistribution | |
| def | __init__ |
| def | get_hash |
Public Member Functions inherited from pip._vendor.distlib.database.Distribution | |
| def | __init__ |
| def | source_url |
| def | name_and_version |
| def | provides |
| def | run_requires |
| def | meta_requires |
| def | build_requires |
| def | test_requires |
| def | dev_requires |
| def | matches_requirement |
| def | __repr__ |
| def | __eq__ |
| def | __hash__ |
Public Attributes | |
| path | |
| dist_path | |
Public Attributes inherited from pip._vendor.distlib.database.BaseInstalledDistribution | |
| path | |
| dist_path | |
Public Attributes inherited from pip._vendor.distlib.database.Distribution | |
| metadata | |
| name | |
| key | |
| version | |
| locator | |
| digest | |
| extras | |
| context | |
| source_url | |
Static Public Attributes | |
| requested = True | |
| dictionary | shared_locations = {} |
Static Public Attributes inherited from pip._vendor.distlib.database.BaseInstalledDistribution | |
| hasher = None | |
Static Public Attributes inherited from pip._vendor.distlib.database.Distribution | |
| build_time_dependency = False | |
| requested = False | |
| download_url = source_url | |
Private Member Functions | |
| def | _get_metadata |
Static Private Attributes | |
| __hash__ = object.__hash__ | |
Created with the *path* of the ``.egg-info`` directory or file provided to the constructor. It reads the metadata contained in the file itself, or if the given path happens to be a directory, the metadata is read from the file ``PKG-INFO`` under that directory.
| def pip._vendor.distlib.database.EggInfoDistribution.__init__ | ( | self, | |
| path, | |||
env = None |
|||
| ) |
| def pip._vendor.distlib.database.EggInfoDistribution.__eq__ | ( | self, | |
| other | |||
| ) |
| def pip._vendor.distlib.database.EggInfoDistribution.__repr__ | ( | self | ) |
| def pip._vendor.distlib.database.EggInfoDistribution.__str__ | ( | self | ) |
|
private |
| def pip._vendor.distlib.database.EggInfoDistribution.check_installed_files | ( | self | ) |
Checks that the hashes and sizes of the files in ``RECORD`` are matched by the files themselves. Returns a (possibly empty) list of mismatches. Each entry in the mismatch list will be a tuple consisting of the path, 'exists', 'size' or 'hash' according to what didn't match (existence is checked first, then size, then hash), the expected value and the actual value.
| def pip._vendor.distlib.database.EggInfoDistribution.list_distinfo_files | ( | self, | |
absolute = False |
|||
| ) |
Iterates over the ``installed-files.txt`` entries and returns paths for
each line if the path is pointing to a file located in the
``.egg-info`` directory or one of its subdirectories.
:parameter absolute: If *absolute* is ``True``, each returned path is
transformed into a local absolute path. Otherwise the
raw value from ``installed-files.txt`` is returned.
:type absolute: boolean
:returns: iterator of paths
| def pip._vendor.distlib.database.EggInfoDistribution.list_installed_files | ( | self | ) |
Iterates over the ``installed-files.txt`` entries and returns a tuple ``(path, hash, size)`` for each line. :returns: a list of (path, hash, size)
|
staticprivate |
| pip._vendor.distlib.database.EggInfoDistribution.dist_path |
| pip._vendor.distlib.database.EggInfoDistribution.path |
|
static |
|
static |
1.8.3.1
Copyright 2014 Google Inc. All rights reserved.