(v: str)
| 313 | |
| 314 | |
| 315 | def python_executable_prefix(v: str) -> list[str]: |
| 316 | if sys.platform == "win32": |
| 317 | # on Windows, all Python executables are named `python`. To handle this, there |
| 318 | # is the `py` launcher, which can be passed a version e.g. `py -3.8`, and it will |
| 319 | # execute an installed Python 3.8 interpreter. See also: |
| 320 | # https://docs.python.org/3/using/windows.html#python-launcher-for-windows |
| 321 | return ["py", f"-{v}"] |
| 322 | else: |
| 323 | return [f"python{v}"] |
| 324 | |
| 325 | |
| 326 | def _python_executable_from_version(python_version: tuple[int, int]) -> str: |
no outgoing calls
no test coverage detected
searching dependent graphs…