Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | List of all members
pip._vendor.distlib.database.EggInfoDistribution Class Reference
Inheritance diagram for pip._vendor.distlib.database.EggInfoDistribution:
Inheritance graph
[legend]
Collaboration diagram for pip._vendor.distlib.database.EggInfoDistribution:
Collaboration graph
[legend]

Public Member Functions

 __init__ (self, path, env=None)
 
 __repr__ (self)
 
 __str__ (self)
 
 check_installed_files (self)
 
 list_installed_files (self)
 
 list_distinfo_files (self, absolute=False)
 
 __eq__ (self, other)
 
- Public Member Functions inherited from pip._vendor.distlib.database.BaseInstalledDistribution
 get_hash (self, data, hasher=None)
 
- Public Member Functions inherited from pip._vendor.distlib.database.Distribution
 source_url (self)
 
 name_and_version (self)
 
 provides (self)
 
 run_requires (self)
 
 meta_requires (self)
 
 build_requires (self)
 
 test_requires (self)
 
 dev_requires (self)
 
 matches_requirement (self, req)
 
 __hash__ (self)
 

Public Attributes

 path
 
 dist_path
 
 modules
 
 name
 
 version
 
- 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
 
 download_urls
 
 digests
 
 source_url
 

Static Public Attributes

bool requested = True
 
dict shared_locations = {}
 
- Static Public Attributes inherited from pip._vendor.distlib.database.BaseInstalledDistribution
 hasher = None
 
- Static Public Attributes inherited from pip._vendor.distlib.database.Distribution
bool build_time_dependency = False
 
bool requested = False
 
 download_url = source_url
 

Protected Member Functions

 _get_metadata (self, path)
 
- Protected Member Functions inherited from pip._vendor.distlib.database.Distribution
 _get_requirements (self, req_attr)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

pip._vendor.distlib.database.EggInfoDistribution.__init__ (   self,
  metadata,
  path = None 
)
Initialise an instance.
:param metadata: An instance of :class:`Metadata` which describes the
                 distribution. This will normally have been initialised
                 from a metadata file in the ``path``.
:param path:     The path of the ``.dist-info`` or ``.egg-info``
                 directory for the distribution.
:param env:      This is normally the :class:`DistributionPath`
                 instance where this distribution was found.

Reimplemented from pip._vendor.distlib.database.BaseInstalledDistribution.

Member Function Documentation

◆ __eq__()

pip._vendor.distlib.database.EggInfoDistribution.__eq__ (   self,
  other 
)
See if this distribution is the same as another.
:param other: The distribution to compare with. To be equal to one
              another. distributions must have the same type, name,
              version and source_url.
:return: True if it is the same, else False.

Reimplemented from pip._vendor.distlib.database.Distribution.

◆ __repr__()

pip._vendor.distlib.database.EggInfoDistribution.__repr__ (   self)
Return a textual representation of this instance,

Reimplemented from pip._vendor.distlib.database.Distribution.

◆ check_installed_files()

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.

◆ list_distinfo_files()

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

◆ list_installed_files()

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)

The documentation for this class was generated from the following file: