(self)
| 523 | ) # type: InterpreterImplementation.Value |
| 524 | |
| 525 | def spec(self): |
| 526 | # type: () -> str |
| 527 | |
| 528 | if self.implementation is InterpreterImplementation.PYPY: |
| 529 | return "pypy-{major}.{minor}-{os}-{arch}".format( |
| 530 | major=self.major, minor=self.minor, os=self._get_os(), arch=self._get_arch() |
| 531 | ) |
| 532 | |
| 533 | # N.B.: We force arch to get arm64 PBS builds for Windows arm64 machines. |
| 534 | # See: https://github.com/astral-sh/uv/issues/12906 |
| 535 | return "cpython-{major}.{minor}{suffix}-{os}-{arch}".format( |
| 536 | major=self.major, |
| 537 | minor=self.minor, |
| 538 | suffix="t" |
| 539 | if self.implementation is InterpreterImplementation.CPYTHON_FREE_THREADED |
| 540 | else "", |
| 541 | os=self._get_os(), |
| 542 | arch=self._get_arch(), |
| 543 | ) |
| 544 | |
| 545 | |
| 546 | def ensure_uv_python( |
no test coverage detected