Skip to content

Fix auto-upgrade to windowed mode with legacy installer.#286

Merged
zooba merged 3 commits intopython:mainfrom
Jesse205:fix/legacy-upgrade-windowed
Mar 20, 2026
Merged

Fix auto-upgrade to windowed mode with legacy installer.#286
zooba merged 3 commits intopython:mainfrom
Jesse205:fix/legacy-upgrade-windowed

Conversation

@Jesse205
Copy link
Contributor

@Jesse205 Jesse205 commented Mar 19, 2026

Previously, I submitted an enhancement in #216 and supported it in #254. However, after updating pymanager to the latest version, a command line window still pops up. After my analysis, when using the traditional installer but not installing any Python through pymanager, the logic if is_wdefault or windowed: is not executed; instead, the code enters the if sh_cmd.match("python*.exe"): block. But this block does not support the aforementioned enhancement. This PR fixes this issue.

I've modified the existing tests for this fix. If there are any errors in my changes, please let me know.

@python-cla-bot
Copy link

python-cla-bot bot commented Mar 19, 2026

All commit authors signed the Contributor License Agreement.

CLA signed

@Jesse205 Jesse205 marked this pull request as draft March 19, 2026 23:14
@Jesse205 Jesse205 marked this pull request as ready for review March 20, 2026 02:02
@Jesse205 Jesse205 force-pushed the fix/legacy-upgrade-windowed branch from b57b729 to 747e01b Compare March 20, 2026 02:03
@Jesse205 Jesse205 force-pushed the fix/legacy-upgrade-windowed branch from 747e01b to 6321223 Compare March 20, 2026 02:05
@zooba
Copy link
Member

zooba commented Mar 20, 2026

Looks great, thanks! I assume the CI tests will agree, so once they're clean, I'll go ahead and merge.

@zooba zooba merged commit 2bdea91 into python:main Mar 20, 2026
4 checks passed
@Jesse205 Jesse205 deleted the fix/legacy-upgrade-windowed branch March 20, 2026 10:56
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.

2 participants