python / python/pymanager

Python Install Manager installed runtimes appear in winget list and winget will attempt to manage them

Open
#287 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

wontfix
Dominant language
Python
Stars
344
Forks
74
Avg merge
1d 3h
Merged PRs (30d)
7

Description

Install source and version

  • Installed from the Windows Store
  • Installed with the MSIX from python.org
  • Installed with the MSI from python.org
  • Installed with winget install 9NQ7512CXL7T

Version: 26.0.240.0

Describe the bug
when Python Install Manager installs a new runtime, that runtime is listed in the winget list command. This is new-ish, and it introduces a weird bug where winget upgrade --all will detect it as needing an upgrade, and install the "old" style python installer, which may clobber the py command with the old launcher.

To Reproduce
Steps to reproduce the behavior:

  1. Open terminal.
  2. Install pymanager winget install 9NQ7512CXL7T
  3. run the launcher py and let it automatically install the latest version of Python (3.14.3 as of this writing)
  4. run winget list

Expected behavior
Either the runtime doesn't exist at all in the list, being managed by Python Install Manager, OR the runtime exists with proper version listed and allows winget to upgrade the appropriate package rather than installing the standalone.

Observed behavior
The runtime appears as:
Python 3.14.3 Python.Python.3.14 < 3.14.0 3.14.3 winget

The < 3.14.0 is the real killer here, but I suspect even with the correctly reported version it would still clobber if the runtime version was bumped before the Python Install Manager got its chance to grab the new one.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with winget install 9NQ7512CXL7T, the py launcher, winget list, and winget upgrade --all. Trace how Python Install Manager registers automatically installed runtimes with winget and determine whether they should be hidden or reported as managed packages; done means winget no longer proposes the standalone installer or clobbers the py command.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
operating-systems, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.