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
()
| 40 | |
| 41 | |
| 42 | def _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 | |
| 63 | def aix_platform(): |
no test coverage detected
searching dependent graphs…