Skip to content

Don't report "installation not registered" warnings for versions other than the one you're installing #85

@pfmoore

Description

@pfmoore

Is your feature request related to a problem? Please describe.
When installing Python 3.12, I got the following output:

Installing Python 3.12.10.
Downloading: ..................................................................✅
Extracting: ...................................................................✅
[WARNING] A runtime matching PythonCore\3.13 is already installed, and so the new one has not been registered.
To register the new installation, remove the existing runtime and then run 'py install --refresh'
[WARNING] An existing registry key for PythonCore\3.12 was renamed to 3.12.0 because it appeared to be invalid. If this is correct, the registry key can be safely deleted. To avoid this in future, ensure that the InstallPath key refers to a valid path.

Global shortcuts directory is not on PATH. Add it for easy access to global Python commands.
Directory to add: C:\Users\Gustav\AppData\Local\Python\bin

Python 3.12.10 will be launched by python3.12-64.exe, python3.12.exe, pythonw3.12-64.exe, pythonw3.12.exe

Note that the first warning refers to Python 3.13, which is not the version I'm installing (the warning is accurate, just not relevant at the moment).

Describe the solution you'd like
Only report information about the current install.

Describe alternatives you've considered
If it's necessary to report this information, at least display it separately, under a clear heading along the lines of "Warnings about other installed versions".

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions