diff --git a/src/pip/_internal/utils/packaging.py b/src/pip/_internal/utils/packaging.py index 4b8fa0fe397..27348dcf603 100644 --- a/src/pip/_internal/utils/packaging.py +++ b/src/pip/_internal/utils/packaging.py @@ -33,8 +33,7 @@ def check_requires_python( python_version = version.parse(".".join(map(str, version_info))) return python_version in requires_python_specifier - -@functools.lru_cache(maxsize=2048) +@functools.lru_cache(maxsize=8192) def get_requirement(req_string: str) -> Requirement: """Construct a packaging.Requirement object with caching""" # Parsing requirement strings is expensive, and is also expected to happen