MCPcopy Create free account
hub / github.com/numpy/numpy / get_plat

Function get_plat

tools/openblas_support.py:36–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34
35
36def get_plat():
37 plat = sysconfig.get_platform()
38 plat_split = plat.split("-")
39 arch = plat_split[-1]
40 if arch == "win32":
41 plat = "win-32"
42 elif arch in ["universal2", "intel"]:
43 plat = f"macosx-{platform.uname().machine}"
44 elif len(plat_split) > 2:
45 plat = f"{plat_split[0]}-{arch}"
46 assert plat in SUPPORTED_PLATFORMS, f'invalid platform {plat}'
47 return plat
48
49
50def get_ilp64():

Callers 1

setup_openblasFunction · 0.85

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected