MCPcopy Index your code
hub / github.com/python/cpython / _aix_bos_rte

Function _aix_bos_rte

Lib/_aix_support.py:42–60  ·  view source on GitHub ↗

Return a Tuple[str, int] e.g., ['7.1.4.34', 1806] The fileset bos.rte represents the current AIX run-time level. It's VRMF and builddate reflect the current ABI levels of the runtime environment. If no builddate is found give a value that will satisfy pep425 related queries

()

Source from the content-addressed store, hash-verified

40
41
42def _aix_bos_rte():
43 # type: () -> Tuple[str, int]
44 """
45 Return a Tuple[str, int] e.g., ['7.1.4.34', 1806]
46 The fileset bos.rte represents the current AIX run-time level. It's VRMF and
47 builddate reflect the current ABI levels of the runtime environment.
48 If no builddate is found give a value that will satisfy pep425 related queries
49 """
50 # All AIX systems to have lslpp installed in this location
51 # subprocess may not be available during python bootstrap
52 try:
53 import subprocess
54 out = subprocess.check_output(["/usr/bin/lslpp", "-Lqc", "bos.rte"])
55 except ImportError:
56 out = _read_cmd_output("/usr/bin/lslpp -Lqc bos.rte")
57 out = out.decode("utf-8")
58 out = out.strip().split(":") # type: ignore
59 _bd = int(out[-1]) if out[-1] != '' else 9988
60 return (str(out[2]), _bd)
61
62
63def aix_platform():

Callers 1

aix_platformFunction · 0.85

Calls 6

_read_cmd_outputFunction · 0.85
strFunction · 0.85
check_outputMethod · 0.45
decodeMethod · 0.45
splitMethod · 0.45
stripMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…