Let us walk on the 3-isogeny graph
|
Public Member Functions | |
None | __init__ (self, str cache_dir) |
str | get_path_for_link (self, Link link) |
Link | get (self, Link link, Optional[str] package_name, List[Tag] supported_tags) |
Data Fields | |
cache_dir | |
![]() | |
cache_dir | |
Additional Inherited Members | |
![]() | |
List[str] | _get_cache_path_parts (self, Link link) |
List[Any] | _get_candidates (self, Link link, str canonical_package_name) |
None __init__ | ( | self, | |
str | cache_dir | ||
) |
Reimplemented from Cache.
Reimplemented in EphemWheelCache.
Definition at line 107 of file cache.py.
Referenced by Protocol.__init_subclass__().
Returns a link to a cached item if it exists, otherwise returns the passed link.
Reimplemented from Cache.
Definition at line 130 of file cache.py.
Referenced by LegacyMetadata.__getitem__(), Layout.__getitem__(), LegacyMetadata.check(), ThemeStack.push_theme(), and LegacyMetadata.write_file().
str get_path_for_link | ( | self, | |
Link | link | ||
) |
Return a directory to store cached wheels for link Because there are M wheels for any one sdist, we provide a directory to cache them in, and then consult that directory when looking up cache hits. We only insert things into the cache if they have plausible version numbers, so that we don't contaminate the cache with things that were not unique. E.g. ./package might have dozens of installs done for it and build a version of 0.0...and if we built and cached a wheel, we'd end up using the same wheel even if the source has been edited. :param link: The link of the sdist for which this will cache wheels.
Reimplemented from Cache.
Definition at line 110 of file cache.py.