File tree 2 files changed +4
-1
lines changed
src/pip/_internal/resolution/resolvelib
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change
1
+ Improve dependency resolution performance by caching platform compatibility
2
+ tags during wheel cache lookup.
Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ def __init__(
121
121
self ._extras_candidate_cache : Dict [
122
122
Tuple [int , FrozenSet [NormalizedName ]], ExtrasCandidate
123
123
] = {}
124
+ self ._supported_tags_cache = get_supported ()
124
125
125
126
if not ignore_installed :
126
127
env = get_default_environment ()
@@ -608,7 +609,7 @@ def get_wheel_cache_entry(
608
609
return self ._wheel_cache .get_cache_entry (
609
610
link = link ,
610
611
package_name = name ,
611
- supported_tags = get_supported () ,
612
+ supported_tags = self . _supported_tags_cache ,
612
613
)
613
614
614
615
def get_dist_to_uninstall (self , candidate : Candidate ) -> Optional [BaseDistribution ]:
You can’t perform that action at this time.
0 commit comments