"pHddlmZddlZddlZddlmZmZddlmZej e Z ej ddd Z ej dddZdS)) annotationsN) specifiersversion Requirement )maxsizerequires_python str | None version_infotuple[int, ...]returnboolc|dStj|}tjdt t |}||vS)a Check if the given Python version matches a "Requires-Python" specifier. :param version_info: A 3-tuple of ints representing a Python major-minor-micro version to check (e.g. `sys.version_info[:3]`). :return: `True` if the given Python version satisfies the requirement. Otherwise, return `False`. :raises InvalidSpecifier: If `requires_python` has an invalid format. NT.)r SpecifierSetrparsejoinmapstr)r r requires_python_specifierpython_versions o/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/pip/_internal/utils/packaging.pycheck_requires_pythonr sQt * 7 H H]388C\,B,B#C#CDDN 6 66i' req_stringrrc t|S)z5Construct a packaging.Requirement object with cachingr)rs rget_requirementr$s z " ""r)r r r r rr)rrrr) __future__r functoolsloggingpip._vendor.packagingrr"pip._vendor.packaging.requirementsr getLogger__name__logger lru_cacherrrrr)s""""""55555555::::::  8 $ $R   777! 7.U######$####r