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

Method _get_arch

testing/__init__.py:504–517  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

502
503 @staticmethod
504 def _get_arch():
505 # type: () -> str
506
507 if IS_WINDOWS:
508 arch = os.environ.get("PROCESSOR_ARCHITECTURE", platform.machine()).lower()
509 else:
510 arch = platform.machine().lower()
511
512 if arch in ("aarch64", "arm64"):
513 return "aarch64"
514 elif arch in ("x86_64", "amd64"):
515 return "x86_64"
516 else:
517 return arch
518
519 major = attr.ib() # type: int
520 minor = attr.ib() # type: int

Callers 1

specMethod · 0.95

Calls 2

lowerMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected