Let us walk on the 3-isogeny graph
Loading...
Searching...
No Matches
EggInfoDistribution Class Reference
Inheritance diagram for EggInfoDistribution:
Collaboration diagram for EggInfoDistribution:

Protected Member Functions

 _reload_version (self)
 
- Protected Member Functions inherited from Distribution
 _forgiving_parsed_version (self)
 
 _dep_map (self)
 
 _build_dep_map (self)
 
 _get_metadata_path_for_display (self, name)
 
 _get_metadata (self, name)
 
 _get_version (self)
 

Protected Attributes

 _version
 
- Protected Attributes inherited from Distribution
 _version
 
 _provider
 
 _forgiving_parsed_version
 
 _key
 
 _parsed_version
 

Additional Inherited Members

- Public Member Functions inherited from Distribution
 __init__ (self, location=None, metadata=None, project_name=None, version=None, py_version=PY_MAJOR, platform=None, precedence=EGG_DIST)
 
 from_location (cls, location, basename, metadata=None, **kw)
 
 hashcmp (self)
 
 __hash__ (self)
 
 __lt__ (self, other)
 
 __le__ (self, other)
 
 __gt__ (self, other)
 
 __ge__ (self, other)
 
 __eq__ (self, other)
 
 __ne__ (self, other)
 
 key (self)
 
 parsed_version (self)
 
 version (self)
 
 requires (self, extras=())
 
 activate (self, path=None, replace=False)
 
 egg_name (self)
 
 __repr__ (self)
 
 __str__ (self)
 
 __getattr__ (self, attr)
 
 __dir__ (self)
 
 from_filename (cls, filename, metadata=None, **kw)
 
 as_requirement (self)
 
 load_entry_point (self, group, name)
 
 get_entry_map (self, group=None)
 
 get_entry_info (self, group, name)
 
 insert_on (self, path, loc=None, replace=False)
 
 check_version_conflict (self)
 
 has_version (self)
 
 clone (self, **kw)
 
 extras (self)
 
- Data Fields inherited from Distribution
 project_name
 
 py_version
 
 platform
 
 location
 
 precedence
 
 key
 
 hashcmp
 
 PKG_INFO
 
 version
 
 parsed_version
 
- Static Public Attributes inherited from Distribution
str PKG_INFO = 'PKG-INFO'
 
- Static Protected Member Functions inherited from Distribution
 _filter_extras (dm)
 

Detailed Description

Definition at line 3068 of file __init__.py.

Member Function Documentation

◆ _reload_version()

_reload_version (   self)
protected
Packages installed by distutils (e.g. numpy or scipy),
which uses an old safe_version, and so
their version numbers can get mangled when
converted to filenames (e.g., 1.11.0.dev0+2329eae to
1.11.0.dev0_2329eae). These distributions will not be
parsed properly
downstream by Distribution and safe_version, so
take an extra step and try to get the version number from
the metadata file itself instead of the filename.

Reimplemented from Distribution.

Definition at line 3069 of file __init__.py.

3069 def _reload_version(self):
3070 """
3071 Packages installed by distutils (e.g. numpy or scipy),
3072 which uses an old safe_version, and so
3073 their version numbers can get mangled when
3074 converted to filenames (e.g., 1.11.0.dev0+2329eae to
3075 1.11.0.dev0_2329eae). These distributions will not be
3076 parsed properly
3077 downstream by Distribution and safe_version, so
3078 take an extra step and try to get the version number from
3079 the metadata file itself instead of the filename.
3080 """
3081 md_version = self._get_version()
3082 if md_version:
3083 self._version = md_version
3084 return self
3085
3086

Field Documentation

◆ _version


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