Skip to content

Show the version of Python Launcher for Windows #100829

@oleksis

Description

@oleksis

Feature or enhancement

Ability to return the version of Python Launcher for Windows running through the argument -V or --version

Pitch

Motivation

Starting with Python 3.11, Python Launcher for Windows has been included

One way to know the version of the py launcher that is running is through the argument '--help' and read the first line of the help content

The following behavior is desired if the argument '--version' is added

$env:PY_PYTHON='3.10'
 
➜ .\PCbuild\amd64\py_d.exe -V
Python Launcher for Windows Version 3.11.1+
Python 3.10.9

➜ .\PCbuild\amd64\py_d.exe --version
Python Launcher for Windows Version 3.11.1+
Python 3.10.9

➜ .\PCbuild\amd64\py_d.exe -V:3.10 -V
Python 3.10.9

➜ .\PCbuild\amd64\py_d.exe -V:3.10 --version
Python 3.10.9

Previous discussion

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions