U n a@shddlZddlmZmZddlmZddlmZerTddlm Z m Z m Z ddl m Z GdddeZdS) N) get_supportedversion_info_to_nodot)normalize_version_info)MYPY_CHECK_RUNNING)ListOptionalTuple)Tagc@s*eZdZdZd ddZddZddZdS) TargetPythonzx Encapsulates the properties of a Python interpreter one is targeting for a package install, download, etc. NcCsf||_|dkrtjdd}nt|}dtt|dd}||_||_||_ ||_ ||_ d|_ dS)a' :param platform: A string or None. If None, searches for packages that are supported by the current system. Otherwise, will find packages that can be built on the platform passed in. These packages will only be downloaded for distribution: they will not be built locally. :param py_version_info: An optional tuple of ints representing the Python version information to use (e.g. `sys.version_info[:3]`). This can have length 1, 2, or 3 when provided. :param abi: A string or None. This is passed to compatibility_tags.py's get_supported() function as is. :param implementation: A string or None. This is passed to compatibility_tags.py's get_supported() function as is. N.) _given_py_version_infosys version_inforjoinmapstrabiimplementationplatform py_versionpy_version_info _valid_tags)selfrrrrrrcC:\Users\vtejo\AppData\Local\Temp\pip-unpacked-wheel-6mt8ur68\pip\_internal\models\target_python.py__init__szTargetPython.__init__cCsZd}|jdk r$ddd|jD}d|jfd|fd|jfd|jfg}d d d|DS) zD Format the given, non-None attributes for display. Nr css|]}t|VqdS)N)r).0partrrr Gsz,TargetPython.format_given..rrrr css&|]\}}|dk rd||VqdS)Nz{}={!r})format)rkeyvaluerrrr Qs)rrrrr)rdisplay_version key_valuesrrr format_given@s   zTargetPython.format_givencCsH|jdkrB|j}|dkrd}nt|}t||j|j|jd}||_|jS)z Return the supported PEP 425 tags to check wheel candidates against. The tags are returned in order of preference (most preferred first). N)versionrrimpl)rrrrrrr)rrr(tagsrrrget_tagsVs zTargetPython.get_tags)NNNN)__name__ __module__ __qualname____doc__rr'r+rrrrr s )r )r&pip._internal.utils.compatibility_tagsrrpip._internal.utils.miscrpip._internal.utils.typingrtypingrrrpip._vendor.packaging.tagsr objectr rrrrs