MCPcopy
hub / github.com/pex-tool/pex / current

Method current

scripts/build-docs.py:40–59  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

38
39 @classmethod
40 def current(cls) -> Platform:
41 system = platform.system().lower()
42 machine = platform.machine().lower()
43 if system == "linux":
44 if machine in ("aarch64", "arm64"):
45 return cls.Linux_aarch64
46 elif machine in ("amd64", "x86_64"):
47 return cls.Linux_x86_64
48 elif system == "darwin":
49 if machine in ("aarch64", "arm64"):
50 return cls.Macos_aarch64
51 elif machine in ("amd64", "x86_64"):
52 return cls.Macos_x86_64
53 elif system == "windows" and machine in ("amd64", "x86_64"):
54 return cls.Windows_x86_64
55
56 raise ValueError(
57 "The current operating system / machine pair is not supported for building docs!: "
58 f"{system} / {machine}"
59 )
60
61 @property
62 def extension(self):

Callers 15

parseMethod · 0.45
build-docs.pyFile · 0.45
create_sdistFunction · 0.45
test_download2Function · 0.45
test_currentFunction · 0.45
test_unique_targetsFunction · 0.45
test_lock_single_targetFunction · 0.45
test_import_from_pexFunction · 0.45
incompatible_pip_versionFunction · 0.45
feast_simulator_sdistFunction · 0.45

Calls 1

lowerMethod · 0.80

Tested by 14

create_sdistFunction · 0.36
test_download2Function · 0.36
test_currentFunction · 0.36
test_unique_targetsFunction · 0.36
test_lock_single_targetFunction · 0.36
test_import_from_pexFunction · 0.36
incompatible_pip_versionFunction · 0.36
feast_simulator_sdistFunction · 0.36