Skip to content

Python launcher should prefer local architecture #130470

Open
@jaraco

Description

@jaraco

Bug report

Bug description:

In brettcannon/python-launcher#425 (comment), I learned that on Windows for ARM, if both Python for x64 and Python for ARM are installed, the Python launcher prefers the x64 version.

> py -0p
 -V:3.13t *       C:\Program Files\Python313\python3.13t.exe
 -V:3.13t-arm64   C:\Users\jaraco\AppData\Local\Programs\Python\Python313-arm64\python3.13t.exe
 -V:3.13          C:\Program Files\Python313\python.exe
 -V:3.13-arm64    C:\Users\jaraco\AppData\Local\Programs\Python\Python313-arm64\python.exe

I understand the ARM version is experimental. When it becomes non-experimental, and probably before then, the Python launcher should prefer version that aligns with the host machine's architecture instead of preferring versions that are run under a compatibility layer.

CPython versions tested on:

3.13

Operating systems tested on:

Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions