(
self,
binary, # type: str
prefix, # type: str
base_prefix, # type: str
sys_path, # type: Iterable[str]
site_packages, # type: Iterable[SitePackagesDir]
extras_paths, # type: Iterable[str]
paths, # type: Mapping[str, str]
packaging_version, # type: str
python_tag, # type: str
abi_tag, # type: str
platform_tag, # type: str
version, # type: Tuple[int, int, int]
pypy_version, # type: Optional[Tuple[int, int, int]]
supported_tags, # type: Iterable[tags.Tag]
env_markers, # type: MarkerEnvironment
configured_macosx_deployment_target, # type: Optional[str]
free_threaded, # type: Optional[bool]
)
| 422 | raise ValueError("Unknown interpreter: {}".format(python_tag)) |
| 423 | |
| 424 | def __init__( |
| 425 | self, |
| 426 | binary, # type: str |
| 427 | prefix, # type: str |
| 428 | base_prefix, # type: str |
| 429 | sys_path, # type: Iterable[str] |
| 430 | site_packages, # type: Iterable[SitePackagesDir] |
| 431 | extras_paths, # type: Iterable[str] |
| 432 | paths, # type: Mapping[str, str] |
| 433 | packaging_version, # type: str |
| 434 | python_tag, # type: str |
| 435 | abi_tag, # type: str |
| 436 | platform_tag, # type: str |
| 437 | version, # type: Tuple[int, int, int] |
| 438 | pypy_version, # type: Optional[Tuple[int, int, int]] |
| 439 | supported_tags, # type: Iterable[tags.Tag] |
| 440 | env_markers, # type: MarkerEnvironment |
| 441 | configured_macosx_deployment_target, # type: Optional[str] |
| 442 | free_threaded, # type: Optional[bool] |
| 443 | ): |
| 444 | # type: (...) -> None |
| 445 | |
| 446 | self._implementation = self._find_implementation(python_tag, free_threaded, version) |
| 447 | production_assert( |
| 448 | not pypy_version or self._implementation is InterpreterImplementation.PYPY |
| 449 | ) |
| 450 | self._pypy_version = pypy_version |
| 451 | |
| 452 | self._binary = binary |
| 453 | self._prefix = prefix |
| 454 | self._base_prefix = base_prefix |
| 455 | self._sys_path = tuple(sys_path) |
| 456 | self._site_packages = tuple(site_packages) |
| 457 | self._extras_paths = tuple(extras_paths) |
| 458 | self._paths = dict(paths) |
| 459 | self._packaging_version = packaging_version |
| 460 | self._python_tag = python_tag |
| 461 | self._abi_tag = abi_tag |
| 462 | self._platform_tag = platform_tag |
| 463 | self._version = version |
| 464 | self._supported_tags = CompatibilityTags(tags=supported_tags) |
| 465 | self._env_markers = env_markers |
| 466 | self._configured_macosx_deployment_target = configured_macosx_deployment_target |
| 467 | self._free_threaded = free_threaded |
| 468 | |
| 469 | def encode(self): |
| 470 | # type: () -> str |
nothing calls this directly
no test coverage detected