FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

TST: Replace pywin32 with ctypes wrapper by QuLogic · Pull Request #31358 · matplotlib/matplotlib · GitHub

Repository navigation

TST: Replace pywin32 with ctypes wrapper - #31358

Merged
timhoffm merged 1 commit into
matplotlib:mainfrom
QuLogic:win32-ctypes
Mar 24, 2026
Merged

timhoffm merged 1 commit into
matplotlib:mainfrom
QuLogic:win32-ctypes

Conversation

QuLogic commented Mar 24, 2026

Copy link
Copy Markdown
Member

PR summary

We only use pywin32 for one function, and while taking care of all the wrapping is nice, it's easy to just take the information from the MSDN docs [1] and pass it through ctypes instead.

This avoids the dependency entirely, helping to fix package conflicts with pixi [2].

[1] https://learn.microsoft.com/en-us/windows/console/generateconsolectrlevent
[2] #30877 (comment)

AI Disclosure

None

PR checklist

We only use `pywin32` for one function, and while taking care of all the
wrapping is nice, it's easy to just take the information from the MSDN
docs [1] and pass it through `ctypes` instead.

This avoids the dependency entirely, helping to fix package conflicts
with pixi [2].

[1] https://learn.microsoft.com/en-us/windows/console/generateconsolectrlevent
[2] matplotlib#30877 (comment)

QuLogic commented Mar 24, 2026

Copy link
Copy Markdown
Member Author

Looking at the Azure logs, all Qt backends are skipped, so we have to wait for AppVeyor to confirm.

QuLogic commented Mar 24, 2026

Copy link
Copy Markdown
Member Author

On AppVeyor, PyQt6, PySide6, and PySide2 are skipped, but not PyQt5. And that passes, so this does appear to have worked.

QuLogic marked this pull request as ready for review March 24, 2026 01:39
timhoffm added this to the v3.11.0 milestone Mar 24, 2026
timhoffm merged commit 2d60a3d into matplotlib:main Mar 24, 2026
55 of 56 checks passed
QuLogic deleted the win32-ctypes branch March 24, 2026 18:23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

3 participants


Back | FazBrowse Home | New Git URL