python / python/pymanager

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

Aperta
#287 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

wontfix
Lingua principale
Python
Stelle
344
Fork
74
Merge medio
1g 3h
PR unite (30g)
7

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Riproduci il problema con winget install 9NQ7512CXL7T, il launcher py, winget list e winget upgrade --all. Traccia il modo in cui Python Install Manager registra i runtime installati automaticamente con winget e determina se debbano essere nascosti o segnalati come pacchetti gestiti; il lavoro è completato quando winget non propone più il programma di installazione autonomo né sovrascrive il comando py.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
operating-systems, tooling
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.