(exe: str)
| 26 | |
| 27 | @functools.cache |
| 28 | def _version_info(exe: str) -> str: |
| 29 | prog = 'import sys;print(".".join(str(p) for p in sys.version_info))' |
| 30 | try: |
| 31 | return cmd_output(exe, '-S', '-c', prog)[1].strip() |
| 32 | except CalledProcessError: |
| 33 | return f'<<error retrieving version from {exe}>>' |
| 34 | |
| 35 | |
| 36 | def _read_pyvenv_cfg(filename: str) -> dict[str, str]: |
no test coverage detected