Skip to content

Conversation

@zooba
Copy link
Member

@zooba zooba commented May 12, 2025

Fixes #83

@zooba
Copy link
Member Author

zooba commented May 12, 2025

With the new name merging algorithm, I get outputs like this:


Tag                Name                             Managed By  Version   Alias
3.14-dev[-64]      Python 3.14.0b1                  PythonCore  3.14.0b1  python[w]3.14[-64].exe, python[w]3[-64].exe
3.14-dev-arm64     Python 3.14.0b1 (ARM64)          PythonCore  3.14.0b1  python[w]3-arm64.exe, python[w]3.14-arm64.exe
3.14t-dev[-64]     Python 3.14.0b1 (free-threaded)  PythonCore  3.14.0b1  python3.14t[-64].exe, python3t[-64].exe, python...

I think I'm going to hide the "w" in py list output as well (without -v).

@pfmoore
Copy link
Member

pfmoore commented May 12, 2025

Hang on. That's py list output, not the message printed at the end of a py install. #83 (which this PR claims to fix) isn't about py list, it's about what's printed after py install.

The output I wanted, after installing Python 3.13, was

Python 3.13 will be launched by python3.exe, python3.13.exe.

Note that the w and -64 variants are not mentioned. As I said in #83, I think they can be left to the documentation to cover.

I don't know whether the code for py list and the code that produces the post-install mesage share the same logic, but if they do, then I'd want py list to show python3.exe, python3.13.exe in the "Alias" column. If that's not acceptable to you (and I don't have a strong opinion on the py list question) then I think we need separate logic for the two separate cases.

@zooba
Copy link
Member Author

zooba commented May 12, 2025

Hang on. That's py list output, not the message printed at the end of a py install

They both use the same mechanism now:

$> py install --refresh
Refreshing install registrations.
Active virtual environment will be launched by python.exe and also python.exe
Python 3.14.0b1 will be launched by python3.14[-64].exe, python3[-64].exe
Python 3.14.0b1 (ARM64) will be launched by python3.14-arm64.exe, python3-arm64.exe
Python 3.14.0b1 (free-threaded) will be launched by python3.14t[-64].exe, python3t[-64].exe

@zooba
Copy link
Member Author

zooba commented May 12, 2025

will be launched by python.exe and also python.exe

😆 Just spotted this, let me get that too

@zooba
Copy link
Member Author

zooba commented May 12, 2025

That last commit swaps the order so that python3[-64].exe sorts ahead of python3.14[-64].exe

@zooba zooba merged commit 0c2dd81 into python:main May 12, 2025
4 checks passed
@zooba zooba deleted the gh-83 branch May 12, 2025 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pymanager install says python will run 3.13, but it doesn't

2 participants