Skip to content

gh-114107: test.pythoninfo logs Windows Developer Mode#114121

Merged
vstinner merged 3 commits into
python:mainfrom
vstinner:pythoninfo_devmode
Jan 16, 2024
Merged

gh-114107: test.pythoninfo logs Windows Developer Mode#114121
vstinner merged 3 commits into
python:mainfrom
vstinner:pythoninfo_devmode

Conversation

@vstinner

@vstinner vstinner commented Jan 16, 2024

Copy link
Copy Markdown
Member

Also, don't skip the whole collect_windows() if ctypes is missing.

Also, don't skip the whole collect_windows() if ctypes is missing.
@vstinner

Copy link
Copy Markdown
Member Author

Developer Mode Disabled

test.pythoninfo on a regular shell (cmd.exe):

support_os_helper.can_symlink: False
windows.developer_mode: disabled
windows.is_admin: 0

=> cannot create symlinks.

test.pythoninfo on a SSH shell:

support_os_helper.can_symlink: True
windows.developer_mode: disabled
windows.is_admin: 1

=> can create symlinks thanks to administrator rights.

Developer Mode Enabled

test.pythoninfo on a regular shell (cmd.exe):

support_os_helper.can_symlink: True
windows.developer_mode: enabled
windows.is_admin: 0

=> can create symlinks thanks to Developer Mode.

@vstinner
vstinner merged commit c77f552 into python:main Jan 16, 2024
@vstinner
vstinner deleted the pythoninfo_devmode branch January 16, 2024 16:23
@vstinner vstinner added needs backport to 3.11 only security fixes needs backport to 3.12 only security fixes labels Jan 16, 2024
@miss-islington-app

Copy link
Copy Markdown

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

@miss-islington-app

Copy link
Copy Markdown

Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 16, 2024
…H-114121)

Also, don't skip the whole collect_windows() if ctypes is missing.

Log also ctypes.windll.shell32.IsUserAnAdmin().
(cherry picked from commit c77f552)

Co-authored-by: Victor Stinner <vstinner@python.org>
@bedevere-app

bedevere-app Bot commented Jan 16, 2024

Copy link
Copy Markdown

GH-114128 is a backport of this pull request to the 3.11 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 16, 2024
…H-114121)

Also, don't skip the whole collect_windows() if ctypes is missing.

Log also ctypes.windll.shell32.IsUserAnAdmin().
(cherry picked from commit c77f552)

Co-authored-by: Victor Stinner <vstinner@python.org>
@bedevere-app bedevere-app Bot removed the needs backport to 3.11 only security fixes label Jan 16, 2024
@bedevere-app

bedevere-app Bot commented Jan 16, 2024

Copy link
Copy Markdown

GH-114129 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.12 only security fixes label Jan 16, 2024
vstinner added a commit that referenced this pull request Jan 16, 2024
) (#114128)

gh-114107: test.pythoninfo logs Windows Developer Mode (GH-114121)

Also, don't skip the whole collect_windows() if ctypes is missing.

Log also ctypes.windll.shell32.IsUserAnAdmin().
(cherry picked from commit c77f552)

Co-authored-by: Victor Stinner <vstinner@python.org>
vstinner added a commit that referenced this pull request Jan 16, 2024
) (#114129)

gh-114107: test.pythoninfo logs Windows Developer Mode (GH-114121)

Also, don't skip the whole collect_windows() if ctypes is missing.

Log also ctypes.windll.shell32.IsUserAnAdmin().
(cherry picked from commit c77f552)

Co-authored-by: Victor Stinner <vstinner@python.org>
kulikjak pushed a commit to kulikjak/cpython that referenced this pull request Jan 22, 2024
…114121)

Also, don't skip the whole collect_windows() if ctypes is missing.

Log also ctypes.windll.shell32.IsUserAnAdmin().
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
…114121)

Also, don't skip the whole collect_windows() if ctypes is missing.

Log also ctypes.windll.shell32.IsUserAnAdmin().
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
…114121)

Also, don't skip the whole collect_windows() if ctypes is missing.

Log also ctypes.windll.shell32.IsUserAnAdmin().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant