MCPcopy Index your code
hub / github.com/pex-tool/pex / spec

Method spec

testing/__init__.py:525–543  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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
546def ensure_uv_python(

Callers 1

ensure_uv_pythonFunction · 0.80

Calls 2

_get_osMethod · 0.95
_get_archMethod · 0.95

Tested by

no test coverage detected